From 3b032c573323588681d3e30f144fb26ba84f3875 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 14 Nov 2017 09:15:23 +0100 Subject: [PATCH] manpages: force content-type to text/plain for non-html .gz files --- .../static-mirroring/vhost/manpages.debian.org.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb b/modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb index 8305ca6f7..c4983a922 100644 --- a/modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb +++ b/modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb @@ -90,6 +90,12 @@ Require all denied + # DefaultType doesn’t work since Apache 2.3.x, so we need to match + # non-HTML files to work around https://bugs.debian.org/880542 + + ForceType text/plain + + # To set the correct Content-Type (e.g. text/html). RemoveType .gz AddEncoding gzip gz -- 2.20.1