Community mailing list archives

community@mail.odoo.com

Re: Why odoo keep redirecting https://{base}/web to http://{base}/web/login?

by
Kingsley
- 04/20/2016 10:15:49
Go to System Parameters -> web.base.url -> value  . put your url there. And you should be fine.

On 20/04/2016 11:17, Kai Zhu wrote:

Hi Community,


I’ve already set "proxy_set_header X-Forwarded-Proto https;” in nginx,
and also set "proxy_mode = True” in odoo configuration.

But odoo do still redirect
https://{base}/web
to 
http://{base}/web/login

then nginx reverse proxy will redirect any http back to https, which produce a infinite redirect loop.

Why this behaviour? How to fix it? (not the dirty way to /addons/web/controllers/main.py)

Thank you!

K

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe