コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
4174 ビュー

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
4075
1
5月 25
2088
1
4月 25
3165
1
4月 25
3938
1
4月 25
1474