Hi !
Given the standard multi-db configuration:
# wildcard proxy for odoo: # one subdomain -> one database <VirtualHost *:80> ServerName mydomain.fr ServerAlias *.mydomain.fr ErrorLog /var/log/odoo/odoo-error.log CustomLog /var/log/odoo/odoo-access.log combined LogLevel warn <Proxy *> Order deny,allow Allow from all </Proxy> ProxyRequests Off ProxyPass / http://mydomain.fr:8089/ ProxyPassReverse / http://mydomain.fr:8089/ ProxyVia On </VirtualHost>
So I already know how to serve database 'foo' with url http://foo.mydomain.com.
In my Odoo config, the dbfilter is set to ^%d$.
How one would add a domain which point to a specific database ?
Example:
user access to http://bar.com/web/login
apache proxies to http://quz.mydomain.fr/web/login
then the config already in place do its job like for other databases: proxy to http://mydomain.fr:8089/ with previous url given to Odoo, so that it serves the db matching the subdomain (here database_of_another_domain)