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

Hi there,

How to set --db-filter=^%h$ equal to different domains?
For example, i have set a database named "abc.com",

And point abc.com to my odoo server IP by adding A Record.

But It doesn't work. can't access my odoo server at all.

Do I have to config the right DNS??


I have successfully set up with --db-filter=^%d$ for subdomains. It works well.

Can Anybody help me to config db filter with different domains?


Thanks very much.


アバター
破棄
著作者

I am using odoo 12c

最善の回答

Let's take a step back. Does it work if you set --db-filter to abc.com ?

アバター
破棄
著作者

In fact, my real domain is http://eirpos.com:8069/ , it goes to db selector.

I have a new subdomain "http://new.johnstonebros.ie:8069", it can't access.

It must be something wrong.

著作者

what is the different between options "--db-filter" and "dbfilter"? Can use them both?

Both --db-filter and dbfilter refer to the same thing. --db-filter is the command line parameter whereas dbfilter is how you can specify the same value in the odoo.conf file.

BTW, when I click on the 2 links you provided, they work fine and select the correct database. When I click on http://eirpos.com:8069/ the "eirpos.com" database is selected and when I click on http://new.johnstonebros.ie:8069/ the "new.johnstonebros.ie" database is selected automatically.

著作者

Yes. meet the requirement. But one problem with www.eirpos.com:8069 not redirect to anywhere.

著作者 最善の回答

I have mixed up something.

Only dbfilter option works in odoo-server.conf file;
--db-filter option should work in odoo command line.

Now I set dbfilter = ^%h$ in odoo-server.conf file, and I have a DB named eirpos.com;
Then I visit URL http://eirpos.com:8069/ , It doesn't show DB selection, and in DB manager page, only one DB "eirpos.com" listed there. So In this case it works.


So, It should work with other (Top) domains in my opinion. But I don't have second free top domain, and I use subdomain (http://new.johnstonebros.ie:8069/), it didn't work at beginning. But after fix the dns problem, pointing subdomain to the same IP, it works.


Conclusion, the option dbfilter = ^%h$ works well with domains without www in my case.


アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 18
2822
0
3月 23
2808
1
8月 21
2627
1
1月 21
6538
3
7月 25
4103