Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
11569 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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,

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

use nginx it's solved the problem in my server and now  i just wright www.mysite.com 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
need to change odoo port from 8069 to 80 แก้ไขแล้ว
3
ต.ค. 18
26060
1
ก.พ. 17
8514
3
ส.ค. 16
10045
3
มี.ค. 15
6998
5
ต.ค. 18
8544