Browse By

Run Odoo from port 80 instead of 8069

  • Denis

    Why don’t you just specify port in Odoo config file? Just deactivate other listeners of port 80…

    • Denis, I tried, but it didn’t work, You can experiment with that.

    • rachid el ghazi

      true or just using the parameter of odoo –xmlrpc-port=80

      • Bennie

        running below port 1000 requires root privileges in the linux world. (on windows, no problem). Having the capability of root is very dangerous on the www. That’s why ports >1000 should be used. That’s also the reason why it’s easier to hack a windows system.

    • jamesutru

      How do you deactivate other listeners of port 80?

  • Bennie

    Next step: https for security sake. How to get a certificate. Then put it on the right place and configure it.

  • Pingback: Run Odoo from port 80 instead of 8069 | onewaterdrop()

  • Ubuntu Frans

    Vimai Rughani and others also excellent install on Linux Mint 17. Maybe can be added. User is odoo

  • Ruben Kannan

    Hey guys,

    Nice article.

    I have two issues.

    1. this does not work for me since I have apache server running on port 80. how do I force this?

    2. How about using database as a subdomain like dbName.myIP insead of myIP:8069?db=dbName or myIP?db=dbName

    • Ruben Kannan


      This works on a ubuntu computer not on a ubuntu VPS.

      • Andrey

        On first issue:
        Don’t you have to change the last line to “exit 1”?

  • THis worked great.. but what if you have multiple databases/multiple companies? Which one will be servers for default website? Thanks!

  • jamesutru

    I was unable to get this to work on my ubuntu 14.0 server

  • Arian

    Thank you .Was very ease.I have my own home server OS ubuntu 14.04.
    Now after forwarding the port 8069 to 80 I can’t open own cloud at how to change the port for owncloud from 80 to other port for example i don’t have so much experience in linux .
    Thx in advance

  • Arian

    sorry i forget , i have same problem with phpmyadmin

  • Rickey

    Wow. This is exactly what I was looking for. Thanks to VIMAL RUGHANI I was able to set this up by my own. Actually, I host my Odoo application at and usually they configure my Odoo server, but today I became an Odoo expert :) Thank youuu..

    • It’s my pleasure Rickey. I am happy that you liked my article.

  • Rurangirwa Bailly

    Thanks a lot! I was following the instructions at , but it wasn’t working.

    Your method worked for me.

    • My Pleasure Rurangirwa. I am Happy that my solution work for you.

  • Adeboye Olubukola Moses

    Thanks this solves a lot…

  • Lhawang Namgyal

    Thanks for the code. I am almost finished coding your code as
    above, but I don’t remember the [sudo] password for odoo. How can I find
    the password?
    Thanks once again

  • Jerin Jose

    Great.its working perfect for me.

  • Duy Pham

    Thank you very much! It is working in my Ubuntu 14.0 running Odoo 9 on VPS

  • Abhimanyu Gaurh

    I am getting error when try to access odoo by localhost


    You don’t have permission to access / on this server.

    Apache/2.4.7 (Ubuntu) Server at localhost Port 80

  • Eslam Elgindy

    i try it but didn’t work with me in ubuntu 16.04 in VPS i think my port 80 is not opened from Firewall can u help me in that

  • Eslam Elgindy

    i found to commen your one and another one what is diffrent betoewen them your one is
    iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8069
    2nd one is
    iptables -t nat -A PREROUTING -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 8069
    wich one is right to use in my VPS