Merge pull request #1214 from owncloud/LukasReschke-patch-1

Add includeSubDomains + preload recommendation
This commit is contained in:
Carla Schroder
2015-06-15 12:03:44 -07:00

View File

@@ -119,10 +119,15 @@ VirtualHost file:
<VirtualHost *:443>
ServerName cloud.owncloud.com
Header always add Strict-Transport-Security "max-age=15768000"
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
</VirtualHost>
It shall be noted that this requires that the ``mod_headers`` extension to be installed.
Be aware that above policy will also apply for all subdomains, if you don't
have HTTPS properly configured on all subdomains you mut remove the ``includeSubdomains``
part.
Furthermore it shall be noted that this requires that the ``mod_headers``
extension is installed.
Proper SSL configuration
************************