Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
6 Trả lời
11558 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Tác giả

I am using odoo 12c

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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.

Tác giả

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

Tác giả Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 18
2790
0
thg 3 23
2784
1
thg 8 21
2605
1
thg 1 21
6516
naked domain set up Đã xử lý
3
thg 7 25
4055