Skip to Content
Menu
This question has been flagged
2 Replies
7371 Views

Hi, I have two databases running on my Linux. Odoo 10 Enterprise.
Database1, and Database2. 

Database1 is set to: odoo.mycompany.com
But it shows all the databases once I go to this link. Now, I have created another subdomain for my Database2. 

What I want?:
1- Once I go to odoo.mycompany.com, it should take me to the database1 login page, as odoo.mycompany.com/web?db=database1

2- Once I go to office.mycompany.com, it should take me to the database2 login page, as office.mycompany.com/web?db=database2

I don't know how to make my subdomains go to different databases links.

I have nginx configured. And both databases are running on both subdomains for now, on Port 80. I want each database to run on it's own subdomain.

Thanks.

Avatar
Discard
Best Answer

dbfilter is the tool of your choice :-)

Check this: https://www.odoo.com/documentation/10.0/setup/deploy.html

Googling for Odoo and dbfilter will provide you numerous examples and tips.

Avatar
Discard
Best Answer

use dbfilter to achieve so.

The purposes of --db-filter: it specifies how the database should be selected based on the hostname (domain) that is being requested. The value is a regular expression, possibly including the dynamically injected hostname (%h) or the first subdomain (%d) through which the system is being accessed.

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
2814
1
Mar 15
2682
2
Mar 15
5444
3
May 24
3245
1
Dec 20
2088