1 # DO NOT EDIT - This file is being maintained by Chef
 
   4   # Basic server configuration
 
   5   ServerName gps-tile.openstreetmap.org
 
   6   ServerAlias *.gps-tile.openstreetmap.org
 
   7   ServerAlias gps.tile.openstreetmap.org
 
   8   ServerAlias gps-*.tile.openstreetmap.org
 
   9   ServerAdmin webmaster@openstreetmap.org
 
  13   SSLCertificateFile /etc/ssl/certs/gps-tile.openstreetmap.org.pem
 
  14   SSLCertificateKeyFile /etc/ssl/private/gps-tile.openstreetmap.org.key
 
  16   # Configure location of static files
 
  17   DocumentRoot /srv/gps-tile.openstreetmap.org/html
 
  19   # Configure the CGI script that serves the tiles
 
  20   ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile
 
  22   # Temporary redirect for old CGI location
 
  23   RedirectPermanent /gps-lines/tile /lines
 
  26   CustomLog /var/log/apache2/access.log combined_extended
 
  27   ErrorLog /var/log/apache2/error.log
 
  29   # Always set Access-Control-Allow-Origin so that simple CORS requests
 
  30   # will always work and can be cached
 
  31   Header set Access-Control-Allow-Origin "*"
 
  35   # Basic server configuration
 
  36   ServerName gps-tile.openstreetmap.org
 
  37   ServerAlias *.gps-tile.openstreetmap.org
 
  38   ServerAlias gps.tile.openstreetmap.org
 
  39   ServerAlias gps-*.tile.openstreetmap.org
 
  40   ServerAdmin webmaster@openstreetmap.org
 
  45   # Redirect for ACME challenge validation
 
  46   RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
 
  49   RewriteCond %{REQUEST_URI} !^/server-status
 
  50   RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=permanent,L]
 
  53   CustomLog /var/log/apache2/access.log combined_extended
 
  54   ErrorLog /var/log/apache2/error.log
 
  57 <Directory /srv/gps-tile.openstreetmap.org/html>
 
  63 <Directory /srv/gps-tile.openstreetmap.org/updater>