콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
8524 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
0
2월 25
18
0
3월 15
3848
2
3월 15
6973
1
3월 15
3849
3
5월 24
5538