# DO NOT EDIT - This file is being maintained by Chef
<% [80, 443].each do |port| -%>
>
# Basic server configuration
ServerName <%= node[:fqdn] %>
ServerAlias gps.tile.openstreetmap.org
ServerAlias gps-*.tile.openstreetmap.org
ServerAlias gps-tile.openstreetmap.org
ServerAlias *.gps-tile.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
<% if port == 443 -%>
# Enable SSL
SSLEngine on
<% end -%>
# 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 "*"
<% end -%>
Options None
AllowOverride None
Order allow,deny
Allow from all