# DO NOT EDIT - This file is being maintained by Chef
# Basic server configuration
ServerName gps-tile.openstreetmap.org
ServerAlias *.gps-tile.openstreetmap.org
ServerAlias gps.tile.openstreetmap.org
ServerAlias gps-*.tile.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
# Enable SSL
SSLEngine on
SSLCertificateFile /etc/ssl/certs/gps-tile.openstreetmap.org.pem
SSLCertificateKeyFile /etc/ssl/private/gps-tile.openstreetmap.org.key
# Configure location of static files
DocumentRoot /srv/gps-tile.openstreetmap.org/html
# Configure the CGI script that serves the tiles
ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile
# Temporary redirect for old CGI location
RedirectPermanent /gps-lines/tile /lines
# Setup logging
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
BufferedLogs on
# Always set Access-Control-Allow-Origin so that simple CORS requests
# will always work and can be cached
Header set Access-Control-Allow-Origin "*"
# Basic server configuration
ServerName gps-tile.openstreetmap.org
ServerAlias *.gps-tile.openstreetmap.org
ServerAlias gps.tile.openstreetmap.org
ServerAlias gps-*.tile.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
# Enable rewriting
RewriteEngine On
# Redirect for ACME challenge validation
RewriteRule ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 [R=permanent,L]
# Redirect to https
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=permanent,L]
# Setup logging
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
BufferedLogs on
Options None
AllowOverride None
Require all granted
Require all granted