From b164b7c6566980da38c4c26f22b083561eb95987 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 1 May 2015 08:53:31 +0200 Subject: [PATCH] Fix static hosts on jessie --- .../templates/static-mirroring/static-vhost.conf.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/roles/templates/static-mirroring/static-vhost.conf.erb b/modules/roles/templates/static-mirroring/static-vhost.conf.erb index b2650744f..cfb35c0ba 100644 --- a/modules/roles/templates/static-mirroring/static-vhost.conf.erb +++ b/modules/roles/templates/static-mirroring/static-vhost.conf.erb @@ -33,8 +33,12 @@ AllowOverride FileInfo Indexes Options=Multiviews IndexOptions FancyIndexing NameWidth=* - Order allow,deny - Allow from all + <% if @lsbmajdistrelease > '7' -%> + Require all granted + <% else -%> + Order allow,deny + Allow from all + <% end -%> Header set Surrogate-Key <%= hostname %> -- 2.20.1