浏览代码

Merge pull request #566 from mplx/patch/hsts-no-subdomains

do not enable HSTS for subdomains
Jason Wilder 8 年之前
父节点
当前提交
f02bc98a6e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -158,7 +158,7 @@ server {
 	{{ end }}
 	{{ end }}
 
 
 	{{ if (ne $https_method "noredirect") }}
 	{{ if (ne $https_method "noredirect") }}
-	add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+	add_header Strict-Transport-Security "max-age=31536000";
 	{{ end }}
 	{{ end }}
 
 
 	{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
 	{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}