I cannot find anything about multi website other just how to create it in odoo. But this doesn't help in any way.
I've got a server with nginx reverse proxy. The server hosts a few odoo databases so it is configured with dbfilter = ^%h$, so the databases are named same as the domains. Now I need to have multi website on one database.
One needs to be accessed from shop.mysite.com the other shop2.mysite.com. The database is named shop.mysite.com.
In odoo I configured the domains for this two sites, created a nginx vhost for shop2.mysite.com that accesses odoo. When I access shop2.mysite.com I'mredirected to the database creation page.
I've tried with redirect to shop.mysite.com. But it just loads that site.
What must I do to get this working?
How do you finnaly solve it ?
@zahid With the instructions from Ermin Trevisan post below.
@Samo . it does not work. it only works with subdomain configuration : ( 2 sudoamine, 1 company, 1 database):
- sub1.company.com
-sub2.company.com
Nothing i found on line si working for my conf: ( 2 domaines,2 companies, 1 database):
- www.company1.com
- www.company2.com