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
X-Forwarded-Proto or X-FORWARDED-PROTO
to correctly build wsgi environ. You still need to pass those headers from nginx to Odoo server.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/11/15, 9:54 AM|
|Seen: 1271 times|
|Last updated: 7/13/15, 1:08 PM|