Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4461 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 15
4209
3
ส.ค. 25
2344
1
พ.ค. 25
2555
1
เม.ย. 25
3519
1
เม.ย. 25
4344