Community mailing list archives

community@mail.odoo.com

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

by
Kai Zhu
- 04/20/2016 06:14:10
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