Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8504 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 25
18
0
thg 3 15
3830
2
thg 3 15
6925
1
thg 3 15
3809
3
thg 5 24
5456