]> git.openstreetmap.org Git - chef.git/blob - cookbooks/gps-tile/templates/default/apache.erb
Send single object node requests into cgimap again
[chef.git] / cookbooks / gps-tile / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4   # Basic server configuration
5   ServerName <%= node[:fqdn] %>
6   ServerAlias gps-tile.openstreetmap.org
7   ServerAlias *.gps-tile.openstreetmap.org
8   ServerAdmin webmaster@openstreetmap.org
9
10   # Configure location of static files
11   DocumentRoot /srv/gps-tile.openstreetmap.org/html
12
13   # Configure the CGI script that serves the tiles
14   ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile
15
16   # Temporary redirect for old CGI location
17   RedirectPermanent /gps-lines/tile /lines
18
19   # Setup logging
20   CustomLog /var/log/apache2/access.log combined
21   ErrorLog /var/log/apache2/error.log
22   BufferedLogs on
23
24   # Always set Access-Control-Allow-Origin so that simple CORS requests
25   # will always work and can be cached
26   Header set Access-Control-Allow-Origin "*"
27 </VirtualHost>
28
29 <Directory /srv/gps-tile.openstreetmap.org/html>
30   Options None
31   AllowOverride None
32   Order allow,deny
33   Allow from all
34 </Directory>