콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3663 화면

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.    

아바타
취소
작성자

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

관련 게시물 답글 화면 활동
5
2월 24
24181
0
7월 18
2665
2
7월 18
3069
2
11월 17
4553
5
7월 25
16285