Run Odoo on port 80
Without nginx / apache run odoo on port 80

Smart way to do odoo port 80 service

Get immediate Support !

Whatsapp with us and take immediate support


Follow below steps to make odoo 80 as services

First create new service 

sudo nano /etc/systemd/system/rc-local.service

Add below code inside /etc/systemd/system/rc-local.service

[Unit]
 Description=/etc/rc.local Compatibility
 ConditionPathExists=/etc/rc.local

[Service]
 Type=forking
 ExecStart=/etc/rc.local start
 TimeoutSec=0
 StandardOutput=tty
 RemainAfterExit=yes
 SysVStartPriority=99

[Install]
 WantedBy=multi-user.target

Grant permission

sudo chmod +x /etc/rc.local

Edit  /etc/rc.local and add content as given below

sudo nano /etc/rc.local

#!/bin/sh
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069
exit 0

Now, enable new service inside linux services

sudo systemctl enable rc-local

Let's start odoo 80 services even 8069 keep running

sudo systemctl start rc-local.service

We can even stop odoo 80 service, it does not stop odoo running on port 8069

sudo systemctl status rc-local.service

To stop odoo on 8069, yes traditional way

sudo service odoo-server stop


Permenent run ODOO on port 80

Mostly people loves shortcut.

Open file as below on linux server

sudo nano /etc/rc.local

Add below line of snippet

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

Now, you need to reboot to get impact

sudo reboot


Once reboot done, you can access odoo on port 80

Additional


CloudFlare - you do SSL with cloudflare and force to use SSL,

So your ODOO directly run on SSL 


ODOO | Deadlock
psycopg2.errors.SerializationFailure: could not serialize access due to concurrent update