From 4f07b7af1ce25fbb80f24c03eaebb8956c155bbf Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 1 Jul 2013 11:33:23 +0200 Subject: [PATCH] Escape variable in nginx post-deploy script `$http_upgrade` is supposed to be a variable set by nginx. It was now substituted by nothing. --- plugins/nginx-vhosts/post-deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nginx-vhosts/post-deploy b/plugins/nginx-vhosts/post-deploy index 615221d73..30b0dfb4a 100755 --- a/plugins/nginx-vhosts/post-deploy +++ b/plugins/nginx-vhosts/post-deploy @@ -12,11 +12,11 @@ server { location / { proxy_pass http://$APP; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; + proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "upgrade"; } } EOF nc -U $HOME/reload-nginx echo "$hostname" > "$HOME/$APP/VHOST" -fi \ No newline at end of file +fi