Explorar el Código

Merge pull request #108 from md5/fix-wildcard-https-redirect

Fix HTTP->HTTPS redirect for wildcard hosts
Jason Wilder hace 10 años
padre
commit
879bb59d90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -88,7 +88,7 @@ upstream {{ $host }} {
 
 server {
 	server_name {{ $host }};
-	rewrite ^(.*) https://{{ $host }}$1 permanent;
+	return 301 https://$host$request_uri;
 }
 
 server {