فهرست منبع

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 }}