تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8484 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 25
18
0
مارس 15
3823
2
مارس 15
6911
1
مارس 15
3796
3
مايو 24
5435