Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3585 Visualizzazioni

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
5
feb 24
24080
0
lug 18
2615
2
lug 18
3022
2
nov 17
4510
5
lug 25
16200