Skip to Content
Menu
This question has been flagged
1 Reply
4272 Views

i got  plan $10 vps with digitalocean.
they gave my one ip address to access my VPS.
with apache install i can handle multiple sites
so i can point website1 and website2 into 1 server.

electronics.com goes to electronic website
cloths.com to clothing site
even if they share same ip
they go to different sites depending on the url


My question is:

Can odoo server handle multiple sites? if not how can i do it?

so i can have:

https://brainlogic.odoo.com/web/login   for brainlogic database

https://greatwall.odoo.com/web/login   for greatwall database


regards,

Gain Charlie


Avatar
Discard
Best Answer

Hi gain charlie

The answer your question is Yes, but you need to dig more into the details. To get that you need to define the strategy to follow like if you will have multiple Odoo instances or just one with multiple database. Boths need to have an option config named dbfilter that is used to match the Odoo instance against the databases and normally it's used with this value

^%d$ that means that it will match the db names that have the same name of the domain used to access the Odoo instance. Boths need to have a reverse proxy in front of it pointing to the Odoo instance port but if you have multiple Odoo instances you need to set every domain against the desired Odoo instance port and have the dbfilter in each one to accept the domain to find the database for that domain, normally you will be ok with ^%d$ but you need to create dbs with the same name of your subdomain to match it or just put the db name in the dbfilter like ^greatwall$ to match greatwall.odoo.com

Also you need to point your domain dns to the server that have installed the reverse proxy and you will be ok

Avatar
Discard