httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie B" <>
Subject [users@httpd] How to skip setting HSTS header for certain virtual hosts only?
Date Mon, 06 Oct 2014 22:22:49 GMT
I set HSTS for HTTPS only, using this directive at the beginning of httpd.conf (apache 2.2)


<IfModule mod_headers.c>

Header add Strict-Transport-Security "max-age=15768000;includeSubDomains" env=HTTPS



How can I tell Apache to not set HSTS for specific virtual hosts (using some type of IF statement)
using one global directive (instead of unsetting inside the specific vhost’s conf)?



View raw message