Ir al contenido
Menú
Se marcó esta pregunta
3596 Vistas

I had to switch domains so I backed up my database and imported it with the new domain name for the database name. Everything works except the front end websites. They are constantly getting redirected to http, so the page load speed is really bad.

Every page fist does a 302 redirect to http and when it fails a 302 redirect to https.

Odoo log:

2019-05-07 06:34:20,267 7860 INFO new.domain.si<http://new.domain.si> werkzeug: 127.0.0.1 - - [07/May/2019 06:34:20] "GET / HTTP/1.0" 302 -

The web.base.url is set to https://new .domain.si, the odoo.conf has the proxy_mode = True and in my nginx site conf it has the proxy_set_header X-Forwarded-Protto https;.

I found that if I change the website menu parameter from "/contact-us" to "https://new .domain.si/contact-u" everything works as it should. But hard coding links is a NO GO.

Is there a setting that I missed or do I have to do a change in the database? When I'm in the odoo "backend" everything works.    

Avatar
Descartar
Autor

The problem is in werkzeug url_root parameter. It's getting set as http and not https.

Publicaciones relacionadas Respuestas Vistas Actividad
5
feb 24
24083
0
jul 18
2620
2
jul 18
3022
2
nov 17
4511
5
jul 25
16211