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.

0

How to avoid :8069 to access a website that developed using Odoo

By
Aby
on 4/1/16, 1:07 AM 416 views

I just install odoo on amazon ubuntu instance. And created a website there. Now to access the website i have to type as public_ip:8069 (For example 55.125.45.26:8069). Can i get the website without defining the 8069 port. Means by just type 55.125.45.26 only.

1

Jignesh Mehta

--Jignesh Mehta--
2081
| 6 4 8
Surat, India
--Jignesh Mehta--


Jignesh Mehta
On 4/1/16, 6:02 AM

Hello Aby,


Follow below step :-

1) Go to etc folder Ex:- cd /etc

2) Open rc.local file Ex:- nano rc.local

3) Written follow command before exit 0 in that,

sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 8069

4) Save that file.

5) Restart the System and odoo server.


Hope this will helps you.

Thanks,

0

Ermin Trevisan

--Ermin Trevisan--
3524
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 4/1/16, 7:53 AM

Jignesh's solution is nice, but at the end of the day you may want to install a proxy server such as Apache, nginx or caddyserver.

0
Aby
On 4/2/16, 1:09 AM

Thanks Jignesh for your response. But can we do it with out redirecting. As i know the default port is 80 now. Can we set it as 8069 by using a web server like Apache 2 as Mr.Ermin said.

You have to setup a proxy server with a virtual host definition which redirects incoming requests to xxx.xxx.xxx.xxx:8069 or localhost:8069

Ermin Trevisan
on 4/2/16, 2:04 AM

... or internal-IP:8069 or 127.0.0.1:8069 depending on your setup

Ermin Trevisan
on 4/2/16, 2:08 AM

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

2 follower(s)

Stats

Asked: 4/1/16, 1:07 AM
Seen: 416 times
Last updated: 4/5/16, 11:51 PM