Community mailing list archives
community@mail.odoo.com
Browse archives
Re: Redirect domain to odoo database
by
Richard
Hi
You can use either apache or nginx to do this.
Start your server with --db-filter=^%d$ or change the init script to include DAEMON_OPTS="-c $CONFIGFILE --db-filter=^%d$"
Then use either apache or nginx redirect or rewrite mods for the domains. In apache you can use:
<VirtualHost *:80>
ServerName domain.com
ServerAlias *.domain.com // Use this if you want dbfillter on subdomain
ErrorLog /var/log/odoo/odoo-error.log
CustomLog /var/log/odoo/odoo-access.log combined
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass / http://domain.com:8069/
ProxyPassReverse / http://domain.com:8069/
ProxyVia On
LogLevel warn
</VirtualHost>
On 20 April 2015 at 21:58, Gastón Pablo Pérez <gpperez@gmail.com> wrote:
Hi!How can I redirect a specific domain to specific odoo database in a server? I have one server with one odoo instance and several databases, so I want to redirect diferent domains to diferent databases and quit the database selectorthanks in advancegreetings!_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe
Reference
-
Redirect domain to odoo database
byGaston Pablo-
-
-
Re: Redirect domain to odoo database
byEric Caudal (Odoo Community Association) -
-