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 gps-tile.openstreetmap.org
7 ServerAlias *.gps-tile.openstreetmap.org
8 ServerAlias gps.tile.openstreetmap.org
9 ServerAlias gps-*.tile.openstreetmap.org
10 ServerAdmin webmaster@openstreetmap.org
15 SSLCertificateFile /etc/ssl/certs/gps-tile.openstreetmap.org.pem
16 SSLCertificateKeyFile /etc/ssl/private/gps-tile.openstreetmap.org.key
19 # Configure location of static files
20 DocumentRoot /srv/gps-tile.openstreetmap.org/html
22 # Configure the CGI script that serves the tiles
23 ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile
25 # Redirect for ACMI challenge validation
26 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
28 # Temporary redirect for old CGI location
29 RedirectPermanent /gps-lines/tile /lines
32 CustomLog /var/log/apache2/access.log combined
33 ErrorLog /var/log/apache2/error.log
36 # Always set Access-Control-Allow-Origin so that simple CORS requests
37 # will always work and can be cached
38 Header set Access-Control-Allow-Origin "*"
42 <Directory /srv/gps-tile.openstreetmap.org/html>
48 <Directory /srv/gps-tile.openstreetmap.org/updater>