fix PreserveHost

This commit is contained in:
Adrien Marquès 2018-06-09 15:07:11 +02:00
parent 1d1c3c6872
commit 761755fe8e
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ install_nginx(){
server_name $server_name www.$server_name; server_name $server_name www.$server_name;
location / { location / {
proxy_set_header Host ptut.com; proxy_set_header Host \$host;
proxy_pass http://127.0.0.1:$PORT; proxy_pass http://127.0.0.1:$PORT;
} }
}""" | sudo tee $CNF_ROOT/sites-available/ptut.reverse-proxy > /dev/null }""" | sudo tee $CNF_ROOT/sites-available/ptut.reverse-proxy > /dev/null