Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
9642 Prikazi

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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
jun. 25
1645
1
feb. 25
3385
2
mar. 24
4509
0
dec. 16
5480
1
jun. 20
9412