Skip to Content
Menu
This question has been flagged
1 Reply
8432 Views

Hello, I have the following situation:

- apache https server 2.4.7

- Odoo docker image https://hub.docker.com/_/odoo/ version 10 (latest)

The apache is listening on port 446 (443 is already in use), with a server dedicated to Odoo, so it forwards everything to Odoo.

Odoo is listening on port 8069. Everything works when I'm logged, but ...

At login and logout, Odoo sends some redirect on address http://<mysite>:446/web or web/login

and the proxy cannot catch it (since it is listening on port 446 for https traffic).

I have tried the fix with an override method there

https://github.com/odoo/odoo/issues/6551#issuecomment-269431865

but I cannot see it activated either.

My analysis points to the fact that Odoo sends a 303 redirect with internal address http://<mysite>:446.

Is there any way I can change the code or config around that?

Thanks a lot, Hubert J.

Avatar
Discard
Author Best Answer

Hello all, after much trial I found a solution which seems to resolve so far. Below is the excerpt of virtual site definition that works. The key point was to convert the relative address with the line

ProxyPassReverse https://$HOST:450/ /  << $HOST address of my host

For clarity the << mark comments and are not part of the file.

<VirtualHost _default_:$PORT> << $PORT the external (https) port where Odoo will be visible   
ServerAdmin webmaster@localhost
 <Proxy *>
 Order deny,allow
 Allow from all
 AuthType Basic
 </Proxy>
 ProxyRequests Off
 ProxyPreserveHost On
ProxyPass / http://localhost:8069/ << 8069 internal Odoo port
 ProxyPassReverse / http://localhost:8069/
ProxyPassReverse https://$HOST:$PORT/ / << $HOST address of my host
ErrorLog ${APACHE_LOG_DIR}/odoo_error.log
 CustomLog ${APACHE_LOG_DIR}/odoo_access.log combined
 #LogLevel alert rewrite:trace6 proxy:trace6
 SSLEngine on << etc. with the rest of secure site configuration
</VirtualHost>

Enjoy Odoo behind proxy! hj

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
144
1
Aug 23
1671
2
Mar 24
2633
0
Dec 16
5277
1
Jun 20
8345