Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3538 Näkymät

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
Hylkää

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)

Tekijä Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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