From ecc865a502c5c8d1b6dd1ed3814c190da0d127b4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 10 Jun 2014 12:57:03 +0100 Subject: [PATCH 1/1] ProxyPassMatch can't be in a section --- cookbooks/nominatim/templates/default/apache.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb index 9f3dcd34b..1c8c82f7d 100644 --- a/cookbooks/nominatim/templates/default/apache.erb +++ b/cookbooks/nominatim/templates/default/apache.erb @@ -28,6 +28,9 @@ AddType text/html .php AddType application/xml .phpx AddType application/json .phpj + + + <% if node[:lsb][:release].to_f >= 14.04 -%> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:<%= @pools[:www][:port ]%>/ ProxyPassMatch ^/(.*\.phpx(/.*)?)$ fcgi://127.0.0.1:<%= @pools[:www][:port ]%>/ @@ -37,7 +40,7 @@ AddHandler fcgi:/var/run/php5-fpm-www.sock .phpx AddHandler fcgi:/var/run/php5-fpm-www.sock .phpj <% end -%> - + <% @pools.each do |name,details| -%> Alias /pool-<%= name %>/ "<%= @directory %>/website/" -- 2.43.2