Skip to Content
Menu
This question has been flagged
4 Replies
3554 Views

i have two domaine name,

installed odoo9 (http://www.odoo.yenthevg.com/installing-odoo-9-ubuntu-16-04/),

configured odoo-server.conf file (i spécified xmlrpc-port=8069 and xmlrpcs-port=8090), 

installed apache2, created two vhost, firstodoodomain.com.conf with 8069 port and secondodoodomain.com.conf with 8090),

in the manage i created two database firstodoodomain and secondodoodomain.

when i enter in the Navigator www.firstodoodomain.com it show the two database selector (firstodoodomain and secondodoodomain) and it done the same think when i type www.seconddomain.com.


i want that when i enter www.firstodoodomain.com the selection of database in the manage select automatically(fistodoodomain).

and how can i spécify the second, third port if i want two other domain.

Thank's for help me please.

Avatar
Discard
Best Answer

KIBINDE OMBIONYO Franck Landry

I think that you need to check that you have the following:

1- At least 2 Odoo instances with dbfilter set in the config options file for the value of each database, like:

#for the config of the instance 1

dbfilter = ^database1$

#for the config of the instance 2

dbfilter = ^database2$


2- Make sure that you point the virtual host domains to the correspondent port of each instance

3- Make sure that Apache is set to deliver the proper headers to Odoo like host and others needed for Odoo to run successfully behind Apache as reverse proxy using:

ProxyPreserveHost On


Read more about it here:

https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

or switch to any other reverse proxy that works better for you

Avatar
Discard
Best Answer

Hi KIBINDE OMBIONYO Franck Landry,

You can create 2 odoo instance for 2 domains. Every instance, you can create other role in postgres.

ex:

In postgres, you create 2 role: db_firstodoodomain, db_secondodoodomain

in firstodoodomain.com.conf => db_user = db_firstodoodomain

in secondodoodomain.com.conf => db_user = db_secondodoodomain

When your enter www.firstodoodomain.com the selection of database in the manage select automatically (if you create 1 database for db_user = db_firstodoodomain)


Avatar
Discard
Best Answer

You do not need different ports as long as you do not explicitely want to run separate instances of Odoo. Use dbfilter instead as it was already recommended to you in your other threads with the same question. Please refrain from asking the same question again and again and read the answers you have already received.

Avatar
Discard
Author

i'm sorry Ermin, but i tried the answers i had received but i have the same problème, i don't no if it's who did't explane well, i tried to spécify dbfilter in odoo-server.conf file, it doesn't work.

I have configured one domaine with apache2, let's Encrypt and renew the certificate it work but when i add a second domain it didn't work il very importante for me please.

I don't how i can explane it to resolve my problème.