1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-11-26 05:46:30 +00:00

Fix HTTP->HTTPS redirect for wildcard hosts

Uses Nginx's $host instead of interpolating `{{ $host }}` in the template
This commit is contained in:
Mike Dillon 2015-02-25 10:29:59 -08:00
parent d831c058f3
commit aa5dfdb3d5

View File

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