]> git.openstreetmap.org Git - chef.git/commitdiff
Use mod_proxy_fcgi for the map call
authorTom Hughes <tom@compton.nu>
Fri, 29 Aug 2014 08:34:55 +0000 (09:34 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 29 Aug 2014 08:34:55 +0000 (09:34 +0100)
cookbooks/web/templates/default/apache.backend.erb

index 5a6f097fe1c659a683e9d37768b3fcd65548319b..8e81aea9c48dd773f469a931e168b1d89b382f7c 100644 (file)
   #
   # Pass supported calls to cgimap
   #
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+  RewriteRule ^/api/0\.6/map$ fcgi://127.0.0.1:8000$0 [P]
+<% else -%>
   RewriteRule ^/api/0\.6/map$ - [H=fcgi:127.0.0.1:8000]
+<% end -%>
   RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
 <% if node[:lsb][:release].to_f >= 14.04 -%>
   RewriteRule ^/api/0\.6/(node|way|relation)/[0-9]+$ fcgi://127.0.0.1:8000$0 [P]