httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject mod_headers partly ignored in case of non-200
Date Thu, 21 Nov 2013 11:13:28 GMT
<VirtualHost IP_ADDR:443>
 <IfModule mod_headers.c>
  Header set "Strict-Transport-Security" "max-age=31536000"
 </IfModule>
</VirtualHost>

in case of a 404 error all mod_headers defined headers are missing
not only the ones defined inside VirtualHost

* X-DNS-Prefetch-Control
* X-Content-Type-Options
* Strict-Transport-Security

why?
_____________________________

[harry@rh:~]$ curl -k --head https://myhost.thelounge.net/
HTTP/1.1 302 Found
Date: Thu, 21 Nov 2013 11:08:31 GMT
Location: https://myhost.thelounge.net/admin/
Cache-Control: max-age=60
Expires: Thu, 21 Nov 2013 11:09:31 GMT
X-DNS-Prefetch-Control: off
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Vary: User-Agent
Content-Type: text/html
Connection: close
_____________________________

[harry@rh:~]$ curl -k --head https://myhost.thelounge.net/fgfgfg
HTTP/1.1 404 Not Found
Date: Thu, 21 Nov 2013 11:08:41 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: close


Mime
View raw message