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

In one PostgreSQL server, I have 2 databases.

  • Database A
  • Database B

I want the following domain names to point to database A.

  • domain-A.com
  • www.domain-A.com
  • *.domain-A.com
    • subdomain-1.domain-A.com
    • subdomain-2.domain-A.com

I want the domain name below to point to database B.

  • domain-B.com
  • www.domain-B.com
  • *.domain-B.com
  • domain-B1.com
  • www.domain-B1.com
  • *.domain-B1.com

How can I set dbfilter?

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

Great!


But how to point domain1.com and domain2.com to one database as multiple companies or multiple websites?

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

Thank you very much for your reply! It worked.
Solved this problem for me.
But after evaluating and testing, I finally chose to deploy multiple odoo through docker to distinguish different database connections.

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

Hello, if you want:
- domain-A.com
- www.domain-A.com
- *.domain-A.com
​- subdomain-1.domain-A.com
​- subdomain-2.domain-A.com
Point to database A:
dbfilter = .*domain-A\.com$|^database A$|^subdomain-1\.domain-A\.com$

Use the same logic for domain B.


الصورة الرمزية
إهمال
الكاتب

Thank you very much for your reply! It worked.
Solved this problem for me.
But after evaluating and testing, I finally chose to deploy multiple odoo through docker to distinguish different database connections.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 15
4012
1
مايو 25
1892
1
أبريل 25
2961
1
أبريل 25
3737
1
أبريل 25
1312