Community mailing list archives


Re: How to Set domain on odoo website ??

redCOR AG, robert rottermann
- 05/08/2016 03:47:17
On 08.05.2016 09:01, mihir shah wrote:
Dear Community,

My current odoo server is running on live IP i.e

But i want to  set domin i.e on this IP so when ever anyone types in url  its should open odoo server link.

and IP address should be hidden only bombaygroup seen.
you need a web server (apache or nginx) on your server which is configurated to redirect incomming calls to your odoo server.
this is how you do it for apache:

1. make sure apache is installed.
    you can do so by navigating to the following url in your browser:    (no port!)
    you should get a greeting page that says that apache i installed.
    If  nothing is displayed you have to continue installing apache
    If a greating page is displayed, but not titled something like "Apache2 Ubuntu Default Page" some other webserver
    is running on your server and the following does not work for you.
2. on your server ( ) you create the following file:
    add the following content to this file:
# -------------------
<VirtualHost *:80>
    DocumentRoot /var/www/
    CustomLog   /var/log/apache2/bombaygroup-access.log combined
    ErrorLog    /var/log/apache2/bombaygroup-error.log
    LogLevel warn

    # don't loose time with IP address lookups
    HostnameLookups Off

    # needed for named virtual hosts
    UseCanonicalName Off

    # configures the footer on server-generated documents
    ServerSignature On
    <IfModule mod_rewrite.c>
      RewriteEngine On

        <Proxy *>
                Order deny,allow
                #deny from all
                allow from *

                Order deny,allow
                Allow from all

      RewriteRule ^/(.*) http://localhost:8069/$1 [R,L,P]


3. again on your server you need to add a softlink from

    this is done like this:
    ln -s     /etc/apache2/sites-enabled/bombaygroup.conf /etc/apache2/sites-available/bombaygroup.conf

3.a you will need to add some apache modules to enable apache to redirect:
    as user root execute:
       a2enmod proxy
       a2enmod proxy_http
       a2enmod ssl
       a2enmod rewrite

4. restart your apache:
    apache2ctl restart

5. you migth want to close port 8069 in your firewall


Mihir Shah

*Please Don't print this email unless you really need to "Save Earth and Save Environment" 

Post to: