X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Flintian.debian.org.erb;h=2bf974f502a7ee37d6f9b5d549ded2ed99633625;hb=3fa4c08d9e2ac03daa4eef2f51a11b9f3dbb9546;hp=cc462ba14f7a1f01fd85fdc0c08fe36132a398c5;hpb=275487c062170f8376dc08021cca3220612b22c4;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 cc462ba14..2bf974f50 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,13 @@ 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 -%> + # 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 @@ -34,12 +37,6 @@ Use common-dsa-vhost-https-redirect lintian.debian.org - - # Cache graphs for an hour (Technically, a "expires" of "24h after last mod" - # might be better, but oh well) - Header set Cache-Control "max-age=3600, must-revalidate, public" - - # Cache these for a year (3600 * 24 * 365.25) # Files in here will change name if their content change @@ -60,4 +57,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: