Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8500 Представления

Hi, I have two databases running on my Linux. Odoo 10 Enterprise.
Database1, and Database2. 

Database1 is set to: odoo.mycompany.com
But it shows all the databases once I go to this link. Now, I have created another subdomain for my Database2. 

What I want?:
1- Once I go to odoo.mycompany.com, it should take me to the database1 login page, as odoo.mycompany.com/web?db=database1

2- Once I go to office.mycompany.com, it should take me to the database2 login page, as office.mycompany.com/web?db=database2

I don't know how to make my subdomains go to different databases links.

I have nginx configured. And both databases are running on both subdomains for now, on Port 80. I want each database to run on it's own subdomain.

Thanks.

Аватар
Отменить
Лучший ответ

dbfilter is the tool of your choice :-)

Check this: https://www.odoo.com/documentation/10.0/setup/deploy.html

Googling for Odoo and dbfilter will provide you numerous examples and tips.

Аватар
Отменить
Лучший ответ

use dbfilter to achieve so.

The purposes of --db-filter: it specifies how the database should be selected based on the hostname (domain) that is being requested. The value is a regular expression, possibly including the dynamically injected hostname (%h) or the first subdomain (%d) through which the system is being accessed.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
февр. 25
18
0
мар. 15
3825
2
мар. 15
6919
1
мар. 15
3799
3
мая 24
5446