X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/89b4f69cf22dcd7ff06a83a0d901fd4c446675e9..5607e6ceec58c6b18840b1a7602694b2f8c5e9f2:/cookbooks/nominatim/templates/default/nginx.erb diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index f4eec183e..5e74bef73 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -188,6 +188,9 @@ server { } location @php { + if ($forward_to_ui) { + rewrite ^(/[^/]*) https://$host/ui$1.html redirect; + } if ($blocked_user_agent ~ ^2$) { return 403; } if ($blocked_referrer) @@ -225,9 +228,6 @@ server { proxy_redirect off; proxy_pass http://nominatim_service; <% end -%> - if ($forward_to_ui) { - rewrite ^(/[^/]*) https://$host/ui$1.html redirect; - } } <% if node[:nominatim][:api_flavour] == "php" %>