From 413df9d7f7d02534cfbd7897c0991d3685963656 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sat, 1 Jul 2017 16:19:13 +0200 Subject: [PATCH] [FIX]Odoo redirect on port too... --- odoo/nginx/odoo.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/odoo/nginx/odoo.conf b/odoo/nginx/odoo.conf index fb1001a..d4ea2f6 100644 --- a/odoo/nginx/odoo.conf +++ b/odoo/nginx/odoo.conf @@ -23,15 +23,15 @@ server { proxy_read_timeout 720s; proxy_connect_timeout 720s; proxy_send_timeout 720s; - proxy_set_header Host ${DOLLSIGN}host; - proxy_set_header X-Forwarded-Host ${DOLLSIGN}host; + proxy_set_header Host ${DOLLSIGN}http_host; + proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host; proxy_set_header X-Forwarded-For ${DOLLSIGN}proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto ${DOLLSIGN}scheme; proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr; location / { proxy_pass http://${ODOO_SERVICE}server; - # proxy_redirect off; - proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/; + proxy_redirect off; + # proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/; } location /longpolling { proxy_pass http://${ODOO_SERVICE}longpoll;