Commit 51a6f67ddedef1d3d27c8ef7925d266098a429ce
1 parent
b7362077
Exists in
master
and in
5 other branches
Fix Prezento NGINX proxy headers
In order to correctly redirect the proxy needs to add the port along with the host address.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
cookbooks/mezuro/templates/prezento/nginx.conf.erb
... | ... | @@ -27,7 +27,7 @@ server { |
27 | 27 | proxy_read_timeout 90; |
28 | 28 | proxy_connect_timeout 90; |
29 | 29 | proxy_redirect off; |
30 | - proxy_set_header Host $host; | |
30 | + proxy_set_header Host $host:$server_port; | |
31 | 31 | proxy_set_header X-Real-IP $remote_addr; |
32 | 32 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
33 | 33 | } | ... | ... |