Odoo Help

1

Using port 80 instead of 8069 on Windows 2008 Server

By
Tolga Inci
on 8/10/16, 9:50 AM 1,008 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
0
Tolga Inci
On 8/12/16, 6:55 AM

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>

0
Rob Isakson
On 8/11/16, 6:15 PM

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.

0

Ermin Trevisan

--Ermin Trevisan--
5284
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 8/12/16, 3:44 AM

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/

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 8/10/16, 9:50 AM
Seen: 1008 times
Last updated: 8/17/16, 1:30 AM