fix PreserveHost
This commit is contained in:
parent
1d1c3c6872
commit
761755fe8e
|
@ -33,7 +33,7 @@ install_nginx(){
|
|||
server_name $server_name www.$server_name;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host ptut.com;
|
||||
proxy_set_header Host \$host;
|
||||
proxy_pass http://127.0.0.1:$PORT;
|
||||
}
|
||||
}""" | sudo tee $CNF_ROOT/sites-available/ptut.reverse-proxy > /dev/null
|
||||
|
|
Loading…
Reference in New Issue