Apache:HSTS Header: Difference between revisions
Appearance
No edit summary |
|||
| Line 14: | Line 14: | ||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Security]] | |||
Revision as of 05:52, 5 March 2022
<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; preload"
DocumentRoot /var/www/
</VirtualHost>