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

Hi,

we started Odoo 15 this time with the classic Odoo modules, but also with the website app. Now if you go with the standard url, the system routes you to the website.

For specific reason, I would like to have a subdomain, for eg. crm.mydomain.com, which routes mit directly to the loginpage of Odoo (/web/login).

I struggeld with a lot of nginx and odoo documentations, but i'm still not successful. Does anybody now how to route a subdomain in nginx together with Odoo to a specific route?

아바타
취소
작성자

Odoo has more than 7 Mio Users. Can it really be, that nobody uses a subdomain to direct to the loginpage?

작성자

Thx for the reply. But these are the normal basic routing settings. The routing (only) from the subdomain https://crm.mydomain.com to https://crm.mydomain.com/web/login cannot be implemented in this way.

베스트 답변

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

Hope it helps

아바타
취소
베스트 답변

Add this server block along with the existing server block in your site's Nginx config file:-

server {
listen 80;
listen [::]:80;
server_name crm.mydomain.com;

return 301 https://mydomain.com/web/login$request_uri;
}

The existing server block may be something like this:-

server {
listen 80;
listen [::]:80;
server_name mydomain.com;

rewrite ^(.*) https://$host$1 permanent;
}

아바타
취소
관련 게시물 답글 화면 활동
0
10월 23
978
2
5월 24
7250
1
1월 23
5326
0
8월 21
4407
1
1월 24
12983