Explorar o código

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

Fix HTTP->HTTPS redirect for wildcard hosts
Jason Wilder %!s(int64=10) %!d(string=hai) anos
pai
achega
879bb59d90
Modificáronse 1 ficheiros con 1 adicións e 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 {