Community mailing list archives

community@mail.odoo.com

Re: Proplem with dbfilter nginx ssl

by
ITpedia Solutions, LLC, Nicholas Riegel
- 05/25/2016 20:25:17
Ermin,

This is first time I have heard about using - vs _, but it makes sense that it would work.

I agree with everything you state about:
dbfilter = ^%d$
Please consider that you can do much more with:
dbfilter = ^%h$

Nicholas Riegel, CEO / Founder
ITpediaSolutions.com
MD/DC/VA: 240-343-ITPS (4877)
Skype ID: itpedia
Google Hangout: nicholasr@itpediasolutions.com
"Powering our customers into the future by leveraging the distinct advantages of open source software."



On 05/25/2016 04:02 AM, Ermin Trevisan wrote:
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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe