1 # DO NOT EDIT - This file is being maintained by Chef
5 # Basic server configuration
7 ServerName <%= node[:fqdn] %>
8 ServerAlias api.openstreetmap.org www.openstreetmap.org
9 ServerAdmin webmaster@openstreetmap.org
14 LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts" combined_with_time
15 CustomLog /var/log/apache2/access.log combined_with_time
16 ErrorLog /var/log/apache2/error.log
21 DocumentRoot <%= node[:web][:base_directory] %>/rails/public
23 PassengerMinInstances 3
24 PassengerMaxRequests 500
25 PassengerPreStart http://www.openstreetmap.org/
28 # Get the real remote IP for requests via a trusted proxy
30 RemoteIPHeader X-Forwarded-For
31 RemoteIPTrustedProxy 146.179.159.160/27
34 # Pass map calls to cgimap
36 <Location /api/0.6/map>
37 SetHandler fcgi:127.0.0.1:8000