]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/roles/templates/static-mirroring/static-vhost.conf.erb
Re-enable symlinks on static vhosts
[dsa-puppet.git] / modules / roles / templates / static-mirroring / static-vhost.conf.erb
index b2650744f6c2bb5f8aa65fb3124f4c3ff07910ae..cc9ff05b0f2a8c84b8e1ce306d824265845574bc 100644 (file)
        DocumentRoot /srv/static.debian.org/mirrors/$name/cur
        <Directory /srv/static.debian.org/mirrors/$name/cur>
                AllowOverride FileInfo Indexes Options=Multiviews
+               Options Indexes SymLinksIfOwnerMatch
                IndexOptions FancyIndexing NameWidth=*
-               Order allow,deny
-               Allow from all
+               <% if @lsbmajdistrelease > '7' -%>
+                       Require all granted
+               <% else -%>
+                       Order allow,deny
+                       Allow from all
+               <% end -%>
        </Directory>
 
        Header set Surrogate-Key <%= hostname %>