X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Flintian.debian.org.erb;h=4e45371d690c111610d810fa0fff30ad1fd2661f;hb=107f559934a6ad06102b93265b8149d8fc060a34;hp=8d1bfd538ee9ab11058a8d5be2419213221195a7;hpb=b62d3a35f372967a51f9a9fffa18b90828af5574;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb b/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb index 8d1bfd538..4e45371d6 100644 --- a/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb +++ b/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb @@ -1,3 +1,5 @@ +<% if scope.function_has_static_component(['lintian.debian.org']) -%> + Use common-dsa-vhost-https-redirect lintian.debian.org > @@ -18,12 +20,11 @@ Use common-dsa-vhost-https-redirect lintian.debian.org AddDefaultCharset utf-8 - # These two lines makes apache serve "lintian.log.gz" as a text/plain with encoding gzip - # making it easier to view the log in the browser. - <% if @lsbmajdistrelease > '7' -%> - Require all granted - <% end -%> + Require all granted + # These three lines makes apache serve + # "lintian.log.gz" as a text/plain with encoding gzip + # making it easier to view the log in the browser. RemoveType .gz AddEncoding x-gzip .gz AddType text/plain .log @@ -54,4 +55,6 @@ Use common-dsa-vhost-https-redirect lintian.debian.org # Versioned request RewriteRule ^/source/([a-z0-9-]+)/([a-zA-Z0-9.+:~-]+)$ /${source-map:$1/$2} [L,R,NE] +<% end -%> + # vim:set syn=apache: