Skip to Content
Menú
This question has been flagged
6 Respostes
11572 Vistes

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.


Avatar
Descartar
Autor

I am using odoo 12c

Best Answer

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

Avatar
Descartar
Autor

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.

Autor

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.

Autor

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

Autor Best Answer

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.


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de març 18
2802
0
de març 23
2789
1
d’ag. 21
2612
1
de gen. 21
6524
3
de jul. 25
4079