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

Using the fresh Odoo installation I configured website, all went fine apart from the fact that sitemap.xml is pointing to localhost:port rather than address defined at web.base.url parameter (it was defined after the website configuration). 

As a site effect each time I login as admin to the system I am redirect to localhost. I setup web.buase.url.freeze to True but is does not help.

I deleted  sitemap.xml from attachments few times other last 2 days but with no improvement.

The system is installed with reverse proxy Nginx.

Anybody has experience with this type of the problem?

아바타
취소
베스트 답변

That's a problem of the running type of Odoo server(Gevent, Threaded or Prefork), they have the responsability of correctly handle reverse proxy headers like:

X_FORWARDED_HOST or X-FORWARDED-FOR 

and 

X-Forwarded-Proto or X-FORWARDED-PROTO

to correctly build wsgi environ. You still need to pass those headers from nginx to Odoo server.

아바타
취소
작성자 베스트 답변

Indeed I did not setup that part in conf file. Thanks a lot!

아바타
취소

I am having this issue. How did you resolve it. What parameter name did you put in the config file? The answer here is not clear enough. Thanks

관련 게시물 답글 화면 활동
0
4월 15
7052
2
3월 15
9315
4
12월 23
4429
1
4월 23
3989
1
12월 16
7609