콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
9745 화면

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.

아바타
취소
작성자 베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
3
6월 25
1763
1
2월 25
3491
2
3월 24
4652
0
12월 16
5596
1
6월 20
9540