From 8effa368557761c23f5496d4a26554b9cec6036c Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 27 Jan 2016 21:12:07 +0100 Subject: [bug] [jessie] Fix apache 2.4 auth directives - Resolves: #7853 --- puppet/modules/site_static/templates/amber.erb | 4 ++++ puppet/modules/site_static/templates/rack.erb | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'puppet') diff --git a/puppet/modules/site_static/templates/amber.erb b/puppet/modules/site_static/templates/amber.erb index 48df555e..694f1136 100644 --- a/puppet/modules/site_static/templates/amber.erb +++ b/puppet/modules/site_static/templates/amber.erb @@ -4,6 +4,10 @@ <%- end -%> /"> AllowOverride FileInfo Indexes Options=All,MultiViews +<% if scope.function_guess_apache_version([]) == '2.4' %> + Require all granted +<% else %> Order deny,allow Allow from all +<% end %> diff --git a/puppet/modules/site_static/templates/rack.erb b/puppet/modules/site_static/templates/rack.erb index d70d3ddb..431778bb 100644 --- a/puppet/modules/site_static/templates/rack.erb +++ b/puppet/modules/site_static/templates/rack.erb @@ -9,7 +9,11 @@ <%- end -%> "> + Options -MultiViews +<% if scope.function_guess_apache_version([]) == '2.4' %> + Require all granted +<% else %> Order deny,allow Allow from all - Options -MultiViews +<% end %> -- cgit v1.2.3