From 6c1f8f1fd12818d191fdf22ece02ec6620379647 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 20 Oct 2013 20:49:28 +0100 Subject: [PATCH] Stop sending single object node requests to cgimap --- cookbooks/web/templates/default/apache.backend.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/web/templates/default/apache.backend.erb b/cookbooks/web/templates/default/apache.backend.erb index 0bd6829a1..3de2ec48d 100644 --- a/cookbooks/web/templates/default/apache.backend.erb +++ b/cookbooks/web/templates/default/apache.backend.erb @@ -39,8 +39,8 @@ # Pass supported calls to cgimap # RewriteRule ^/api/0\.6/map$ - [H=fcgi:127.0.0.1:8000] - RewriteCond %{REQUEST_METHOD} =GET - RewriteRule ^/api/0\.6/(node|way|relation)/[0-9]+$ - [H=fcgi:127.0.0.1:8000] + RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$ + RewriteRule ^/api/0\.6/(way|relation)/[0-9]+$ - [H=fcgi:127.0.0.1:8000] RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full$ - [H=fcgi:127.0.0.1:8000] RewriteRule ^/api/0\.6/(nodes|ways|relations)$ - [H=fcgi:127.0.0.1:8000] -- 2.39.5