瀏覽代碼

edit hsts configuration

The header must contain the `includeSubDomains` directive.
The header must contain the `preload` directive.
pull/583/head
Guillaume Vincent 3 年之前
父節點
當前提交
3168380ff0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      containers/webserver/httpd-ssl.conf

+ 3
- 3
containers/webserver/httpd-ssl.conf 查看文件

@@ -139,7 +139,7 @@ ServerAdmin EMAIL
SSLEngine on
SSLCertificateFile "/usr/local/apache2/conf/CRT_PATH"
SSLCertificateKeyFile "/usr/local/apache2/conf/KEY_PATH"
Header always set Strict-Transport-Security "max-age=63072000"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
</VirtualHost>

<VirtualHost *:443>
@@ -154,7 +154,7 @@ ServerAdmin EMAIL
SSLEngine on
SSLCertificateFile "/usr/local/apache2/conf/CRT_PATH"
SSLCertificateKeyFile "/usr/local/apache2/conf/KEY_PATH"
Header always set Strict-Transport-Security "max-age=63072000"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
</VirtualHost>

<VirtualHost *:443>
@@ -168,5 +168,5 @@ ServerAdmin EMAIL
SSLEngine on
SSLCertificateFile "/usr/local/apache2/conf/CRT_PATH"
SSLCertificateKeyFile "/usr/local/apache2/conf/KEY_PATH"
Header always set Strict-Transport-Security "max-age=63072000"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
</VirtualHost>

Loading…
取消
儲存