X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/61b239cdb6ad602b3e729535a1c719fa79589ba2..06d02b06b5618a0e5cca6013e523d03351ea975c:/cookbooks/nominatim/templates/default/apache.erb?ds=inline diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb index d14a5c8ed..517967f09 100644 --- a/cookbooks/nominatim/templates/default/apache.erb +++ b/cookbooks/nominatim/templates/default/apache.erb @@ -33,9 +33,11 @@ <% @pools.each do |name,details| -%> Alias /pool-<%= name %>/ "<%= @directory %>/website/" + <% end -%> <% node[:nominatim][:redirects].each do |url,host| -%> - ProxyPassMatch ^/pool-<%= name %>/(<%= url %>\.php(/.*)?) http<% if port == 443 -%>s<% end -%>://<%= host %>/pool-<%= name %>/$1 + ProxyPassMatch ^/pool-www/(<%= url %>\.php(/.*)?) http<% if port == 443 -%>s<% end -%>://<%= host %>/pool-www/$1 <% end -%> + <% @pools.each do |name,details| -%> ProxyPassMatch ^/pool-<%= name %>/(.*\.php(/.*)?) fcgi://127.0.0.1:<%= details[:port ]%><%= @directory %>/website/$1 <% end -%>