Use generic `$host` instead of host name
This commit is contained in:
parent
8db768bd61
commit
ece9c6b451
|
@ -4,5 +4,5 @@ server {
|
||||||
|
|
||||||
server_name www-server.localhost;
|
server_name www-server.localhost;
|
||||||
|
|
||||||
return 301 $scheme://www.www-server.localhost$request_uri;
|
return 301 $scheme://www.$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue