Skip to content

Commit 898b244

Browse files
committed
Merge remote-tracking branch 'github/pull/738'
2 parents e0bdd54 + b80fea5 commit 898b244

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cookbooks/dev/templates/default/apache.rails.erb

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
RewriteRule ^/api/0\.6/(node|way|relation)/[0-9]+/relations(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
4949
RewriteRule ^/api/0\.6/node/[0-9]+/ways(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
5050
RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
51+
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
5152
RewriteRule ^/api/0\.6/(nodes|ways|relations)(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
5253
RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
5354
<% end -%>

cookbooks/web/templates/default/apache.frontend.erb

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ ErrorLog /var/log/apache2/error.log
186186
RewriteRule ^/api/0\.6/(node|way|relation)/[0-9]+/relations(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
187187
RewriteRule ^/api/0\.6/node/[0-9]+/ways(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
188188
RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
189+
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
189190
RewriteRule ^/api/0\.6/(nodes|ways|relations)(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
190191
RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
191192

0 commit comments

Comments
 (0)