1 # DO NOT EDIT - This file is being maintained by Chef
4 # Basic server configuration
5 ServerName <%= node[:fqdn] %>
6 ServerAlias tile.openstreetmap.org
7 ServerAlias parent.tile.openstreetmap.org
8 ServerAdmin webmaster@openstreetmap.org
10 # Configure location of static files and CGI scripts
11 DocumentRoot /srv/tile.openstreetmap.org/html
12 ScriptAlias /cgi-bin/ /srv/tile.openstreetmap.org/cgi-bin/
14 # Get the real remote IP for requests via a trusted proxy
15 RemoteIPHeader X-Forwarded-For
16 <% @caches.each do |cache| -%>
17 <% cache.ipaddresses(:role => :external) do |address| -%>
18 RemoteIPTrustedProxy <%= address %>
23 CustomLog /var/log/apache2/access.log combined
24 ErrorLog /var/log/apache2/error.log
27 # Enable the rewrite engine
30 # Rewrite tile requests to the default style
31 RewriteRule ^/(-?\d+)/(-?\d+)/(-?\d+)\.png$ /default/$1/$2/$3.png [PT,T=image/png,L]
34 <Directory /srv/tile.openstreetmap.org/html>
41 <Directory /srv/tile.openstreetmap.org/cgi-bin>