X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/dda736cb32c650afe6d18c1fa311c4b68c1e0fde..c05f38004a026509d99b5f2350bfeb021e44fc42:/cookbooks/nominatim/templates/default/apache.erb diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb index be0e48a59..230063643 100644 --- a/cookbooks/nominatim/templates/default/apache.erb +++ b/cookbooks/nominatim/templates/default/apache.erb @@ -25,43 +25,21 @@ /website/"> DirectoryIndex search.php Options FollowSymLinks -<% if node[:lsb][:release].to_f >= 14.04 -%> Require all granted -<% end -%> -<% if node[:lsb][:release].to_f >= 14.04 -%> ProxyPassMatch ^/([^/]*\.php(/.*)?)$ fcgi://127.0.0.1:<%= @pools[:www][:port ]%><%= @directory %>/website/$1 -<% else -%> - - SetHandler fcgi:/var/run/php5-fpm-www.sock - -<% end -%> <% @pools.each do |name,details| -%> Alias /pool-<%= name %>/ "<%= @directory %>/website/" -<% if node[:lsb][:release].to_f >= 14.04 -%> ProxyPassMatch ^/pool-<%= name %>/(.*\.php(/.*)?) fcgi://127.0.0.1:<%= details[:port ]%><%= @directory %>/website/$1 -<% else -%> - /(.*\.php(/.*)?)$> - SetHandler fcgi:/var/run/php5-fpm-<%= name %>.sock - -<% end -%> <% end -%> -<% if node[:lsb][:release].to_f >= 14.04 -%> Redirect 429 /pool-block/ ErrorDocument 429 /509.html ErrorDocument 429 /509.html -<% else -%> - Redirect 420 /pool-block/ - ErrorDocument 420 /509.html - - ErrorDocument 420 /509.html - -<% end -%> Redirect 403 /pool-ban/ ErrorDocument 403 /403.html