Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
9076 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 15
6952
2
มี.ค. 15
9172
4
ธ.ค. 23
4322
1
เม.ย. 23
3873
1
ธ.ค. 16
7474