From 7d607778c26ec52f8e1ebedba8204aa2233c8cc4 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sat, 1 Jul 2017 16:12:03 +0200 Subject: [PATCH] [FIX]Odoo redirect on port too... --- odoo/nginx/odoo.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odoo/nginx/odoo.conf b/odoo/nginx/odoo.conf index 00e7307..fb1001a 100644 --- a/odoo/nginx/odoo.conf +++ b/odoo/nginx/odoo.conf @@ -30,7 +30,8 @@ server { proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr; location / { proxy_pass http://${ODOO_SERVICE}server; - proxy_redirect off; + # proxy_redirect off; + proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/; } location /longpolling { proxy_pass http://${ODOO_SERVICE}longpoll;