تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9250 أدوات العرض

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
أبريل 15
7087
2
مارس 15
9323
4
ديسمبر 23
4455
1
أبريل 23
4022
1
ديسمبر 16
7617