Community mailing list archives

community@mail.odoo.com

Re: Proplem with dbfilter nginx ssl

by
Ermin Trevisan
- 05/25/2016 03:59:01

On 24.05.2016 20:30, Nicholas Riegel wrote:
> Yes. We have been able to configure Odoo 8, Odoo 9 CE, and Odoo 9 EE
> server for multiple databases mapped to the different domains. These are
> our /etc/odoo.conf setting:
> 
> dbfilter = ^%h$
> 
> Where
> db name = subdomain_domian_tld (example: demo9ee_openodoo_com)

At other places I have read that the db name should be
subdomain-domain-tld (dashes instead of underscores), does this make a
difference?

It might also be of interest that we are doing it with the subdomain filter:

dbfilter = ^%d$

This works for any mixture of subdomain and/or domains as long as the
subdomain name is unique, because Odoo is automatically cutting of the
"www"-subdomain.

Examples:
subdomain1.firstdomain.tld -> db name = subdomain1
subdomain2.firstdomain.tld -> db name = subdomain1

subdomain1.seconddomain.tld -> db name = subdomain1

mydatabase.mydomain.tld -> db name = mydatabase
www.mydatabase.tld -> db name = mydatabase



-- 
twanda AG
Ermin Trevisan
Artherstrasse 19
CH-6318 Walchwil
T    +41 41 758 1515
M    +41 79 208 7373
E    trevi@twanda.com
www.twanda.ch
www.twanda.ch/page/restaurant