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

Hello,

I would like to achieve the following using nginx as my webserver:

Odoo is installed twice on my server. Instance 1 is installed under "/odoo1/" running on Port 8069, instance 2 under /odoo2/" running on port 8089.

The users of instance 1 should be able to access the website of instance 1 under www.domain1.com and the backend under intern.domain1.com.

For instance 2 the same: website under www.domain2.com and backend under intern.domain2.com.

I already successfully created the reverse proxy for nginx:

www.domain1.com -> 127.0.0.1:8069
www.domain2.com -> 127.0.0.1:8089


What I do not know is, how to do the redirection to the backend, if the user access intern.domain*.com.

Can anybody help me?

Thank you in advance.

Regards

Lars

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

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

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

As long as you do not want to operate separate servers for the frontend and the backend (maybe for security reasons), I can not see any advantage of your desired setup, it is unnecessarily complicated and against Odoo's design.

If you still want to do it, you will have to do URL rewriting. All URLs starting with example.com/web are backend URLs.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 24
9158
0
thg 10 23
978
4
thg 12 22
379
2
thg 8 24
2214