跳至內容
選單
此問題已被標幟
2 回覆
3533 瀏覽次數

it's possible? access odoo port 8069 on port 80 apache - Odoo10 Community at Ubuntu Server 16.04.


i have trouble accessing 8069 because SSL, my server SSL only work on port 80.

頭像
捨棄

You can configure the apache server with site-available.conf file and do the redirection on apache file . Another easy option which is temporary to use port redirection using below command sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 (Note that once server is restarted this redirection will be removed)

作者 最佳答案

this work for me

add command to /etc/rc.local file and save
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069

Reboot server, and acces ip no using 8069



頭像
捨棄
最佳答案

You can configure the apache server with site-available.conf file and do the redirection on apache file . Another easy option which is temporary to use port redirection using below command sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 (Note that once server is restarted this redirection will be removed)

頭像
捨棄
作者

i try the easy option, not work when accessing domain.com