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 ServerAdmin webmaster@openstreetmap.org
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
27 ErrorLog /var/log/apache2/error.log
30 # Always set Access-Control-Allow-Origin so that simple CORS requests
31 # will always work and can be cached
32 Header set Access-Control-Allow-Origin "*"
36 <Directory /srv/gps-tile.openstreetmap.org/html>