Skip to Content
Menu
This question has been flagged

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
Discard
Author

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

Related Posts Replies Views Activity
5
Feb 24
22101
0
Jul 18
1763
2
Jul 18
2142
2
Nov 17
3501
5
Sep 24
14080