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

 Hi All!

Version Odoo: Odoo 13 Community

I have nginx installed in my server as reverse proxy.  I have one database with three websites by company (Multicompany) in te same database. In nginx I configured the reverse proxy for each of the website.

Example, in Odoo i have one database call DBPRUB with the following :

Comapny 1 : website1.com

Company2:  website2.com

Company 3: website3.com

And in my nginx sites-enabled, i have one file  by domain Example: website1.com, website2.com, website3.com and filtered the database. When I access the website through any URL, the first website loads me by default. 

If I put website2.com open website1.com and if I put website3.com open website1.com too.

What is expected is that if I put website2.com open the website2.com site and if I put website3.com open the website3.com site not website1.com.

Is there any configuration I'm missing?

Thanks!

Ảnh đại diện
Huỷ bỏ

HI did you find a solution ?

Câu trả lời hay nhất

Hello, In Website > Configuration > Settings you need to have a domain set for each website, the domain must match the one you set up on Nginx.

additionally take a look at your system parameters to see if you don't have the web.base.url parameter set for the wrong company, you can do it by enabling developer mode and going to: Settings > Technical > System Parameters


hope it helps.

Ảnh đại diện
Huỷ bỏ

how to set web.base.url value in multidoman/single db case ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 20
3846
3
thg 5 24
23071
4
thg 10 23
3553
4
thg 12 22
379
0
thg 10 22
4127