コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
9946 ビュー

Hello,

I installed Odoo on Windows 2008 server. I would like users to access Odoo through our public website (e.g. company.com) without having to enter company.com:8069. I can either set the Odoo default port to 80, or redirect port 80 requests to 8069. Any ideas how I can accomplish this on Windows 2008 server? I tried the following command, but it didn't work:

netsh interface portproxy add v4tov4 listenaddress=MY_IP listenport=80 connectaddress=MY_IP connectport=8069
アバター
破棄
著作者 最善の回答

I found a solution for my problem by installing Apache server and configuring reverse proxy. Let me explain in more detail, since most tutorials are for Lİnux and not Windows:

1. Follow the instructions here to install and configure Apache server on Windows:  https://gist.github.com/gen3ric/cfed87b4ec3f362006bb

2. At the last step use the following for httpd-vhosts.conf. Replace example.com with your domain name.

<VirtualHost *:80>

ServerAdmin me@example.com

DocumentRoot "C:/Apache24/htdocs"

ServerName example.com:80

ErrorLog "logs/example.com-error.log"

CustomLog "logs/example.com-access.log" common

ProxyRequests Off

ProxyPreserveHost Off

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

<Location />

ProxyPass http://example.com:8069/ connectiontimeout=5 timeout=300

ProxyPassReverse http://example.com:8069/

</Location>

</VirtualHost>

アバター
破棄
最善の回答

If you are deploying to AWS, you need to use the private IP that is listed on the desktop, instead of the public IP. Once I did that it worked great. You will also need to set up the security role to allow port 80 through from the AWS console.

If you are not on AWS (or even if you are), you may need to open that port on the firewall on windows.

アバター
破棄
最善の回答

If you do use a public website, I'd recommend you to setup up a proper proxy server, check this for further explanation:http://antiun.github.io/odoo-reverse-proxy-howto/

アバター
破棄
関連投稿 返信 ビュー 活動
9
2月 24
127151
5
10月 18
8468
3
3月 15
6894
3
5月 24
18815
6
11月 17
11472