Explorar el Código

fix: http-to-https use 301

hace 10 meses
padre
commit
ff7e3e79ca
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 }}