Community mailing list archives

community@mail.odoo.com

Re: Redirect domain to odoo database

by
Richard
- 04/21/2015 02:24:07
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>

Richard Lehnerdt
tel:      +27 79 1595 634
skype:  richard_lehnerdt


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 selector

thanks in advance

greetings!

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