Fix HTTP->HTTPS redirect for wildcard hosts
Uses Nginx's $host instead of interpolating `{{ $host }}` in the template
This commit is contained in:
parent
d831c058f3
commit
aa5dfdb3d5
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Reference in a new issue