Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
6 Risposte
11564 Visualizzazioni

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
Abbandona
Autore

I am using odoo 12c

Risposta migliore

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

Avatar
Abbandona
Autore

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.

Autore

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.

Autore

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

Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 18
2795
0
mar 23
2787
1
ago 21
2607
1
gen 21
6520
3
lug 25
4064