Jump to content

Apache:HSTS Header

From Wiki
Revision as of 20:05, 1 March 2022 by Kangtain (talk | contribs) (Created page with " <VirtualHost *:443> ServerAdmin support@example.com ServerName www.example.com SSLEngine on SSLCertificateFile /path/to/www.example.com.cert SSLCertificateKeyFile /path/to/www.example.com.key […] <span style="color:#ff0000">Header always set Strict-Transport-Security "max-age=31536000 ; includeSubdomains;"</span> DocumentRoot /var/www/ </VirtualHost> ==Source== *[https://blog.matrixpost.net/using-http-strict-transport-security...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
<VirtualHost *:443>
    ServerAdmin support@example.com
    ServerName www.example.com
    SSLEngine on
    SSLCertificateFile /path/to/www.example.com.cert
    SSLCertificateKeyFile /path/to/www.example.com.key
    […]
    Header always set Strict-Transport-Security "max-age=31536000 ; includeSubdomains;"
    DocumentRoot /var/www/
</VirtualHost>

Source