From 761755fe8e7c5440b06f8a06ae002d42a6c480e0 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 9 Jun 2018 15:07:11 +0200 Subject: [PATCH] fix PreserveHost --- install-scripts/reverse-proxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-scripts/reverse-proxy b/install-scripts/reverse-proxy index 96826fe..b08e564 100644 --- a/install-scripts/reverse-proxy +++ b/install-scripts/reverse-proxy @@ -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