1 # DO NOT EDIT - This file is being maintained by Chef
3 <% [80, 443].each do |port| -%>
4 <VirtualHost *:<%= port %>>
5 # Basic server configuration
6 ServerName <%= node[:fqdn] %>
7 ServerAlias gps.tile.openstreetmap.org
8 ServerAlias gps-*.tile.openstreetmap.org
9 ServerAlias gps-tile.openstreetmap.org
10 ServerAlias *.gps-tile.openstreetmap.org
11 ServerAdmin webmaster@openstreetmap.org
18 # Configure location of static files
19 DocumentRoot /srv/gps-tile.openstreetmap.org/html
21 # Configure the CGI script that serves the tiles
22 ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile
24 # Temporary redirect for old CGI location
25 RedirectPermanent /gps-lines/tile /lines
28 CustomLog /var/log/apache2/access.log combined
29 ErrorLog /var/log/apache2/error.log
32 # Always set Access-Control-Allow-Origin so that simple CORS requests
33 # will always work and can be cached
34 Header set Access-Control-Allow-Origin "*"
38 <Directory /srv/gps-tile.openstreetmap.org/html>
44 <Directory /srv/gps-tile.openstreetmap.org/updater>