コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9008 ビュー

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
6899
2
3月 15
9104
4
12月 23
4269
1
4月 23
3811
1
12月 16
7430