浏览代码

fix: http-to-https use 301

10 月之前
父节点
当前提交
ff7e3e79ca
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      template/block/http-to-https.conf

+ 2 - 2
template/block/http-to-https.conf

@@ -11,9 +11,9 @@ value = ""
 
 {{- if .host }}
     if ($host == {{ .host }}) {
-        return 301 https://$host$request_uri;
+        return 308 https://$host$request_uri;
     }
     return 404;
 {{ else }}
-return 301 https://$host$request_uri;
+return 308 https://$host$request_uri;
 {{- end }}