跳至內容
選單
此問題已被標幟
6 回覆
11578 瀏覽次數

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
2817
0
3月 23
2797
1
8月 21
2620
1
1月 21
6531
3
7月 25
4090