This question has been flagged
3 Replies
8487 Views

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
Avatar
Discard
Author Best Answer

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>

Avatar
Discard
Best Answer

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.

Avatar
Discard
Best Answer

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/

Avatar
Discard