From: Sarah Hoffmann Date: Thu, 18 Jun 2015 21:35:53 +0000 (+0200) Subject: fix syntax error X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/5a863cccda9a064b0e7e92730993a46c947d1189?ds=sidebyside fix syntax error --- diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb index fb6acc76c..d48e04212 100644 --- a/cookbooks/nominatim/templates/default/apache.erb +++ b/cookbooks/nominatim/templates/default/apache.erb @@ -33,7 +33,7 @@ <% @pools.each do |name,details| -%> Alias /pool-<%= name %>/ "<%= @directory %>/website/" <% node[:nominatim][:redirects].each do |url,host| -%> - ProxyPassMatch ^/pool-<%= name %>/(<%= url %>\.php(/.*)?) http<%= if port == 443 %>s<%= end %>://<%= host %>/pool-<%= name %>/$1 + ProxyPassMatch ^/pool-<%= name %>/(<%= url %>\.php(/.*)?) http<% if port == 443 -%>s<% end -%>://<%= host %>/pool-<%= name %>/$1 <% end -%> ProxyPassMatch ^/pool-<%= name %>/(.*\.php(/.*)?) fcgi://127.0.0.1:<%= details[:port ]%><%= @directory %>/website/$1 <% end -%>