Selaa lähdekoodia

fix: http-to-https use 301

10 kuukautta sitten
vanhempi
commit
ff7e3e79ca
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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 }}