跳至内容
菜单
此问题已终结
3 回复
4204 查看

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
8月 15
4081
1
5月 25
2114
1
4月 25
3194
1
4月 25
3985
1
4月 25
1506