Procházet zdrojové kódy

Fix HTTP->HTTPS redirect for wildcard hosts

Uses Nginx's $host instead of interpolating `{{ $host }}` in the template
Mike Dillon před 10 roky
rodič
revize
aa5dfdb3d5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 {