Odoo Help

Welcome!

This community 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.

1

Using port 80 instead of 8069 on Windows 2008 Server

By
Tolga Inci
on 8/10/16, 9:50 AM 490 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--
3524
| 6 3 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/

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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