Skip to Content
Menu
This question has been flagged
2 Replies
3180 Views

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.

Avatar
Discard

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)

Author Best Answer

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



Avatar
Discard
Best Answer

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)

Avatar
Discard
Author

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