콘텐츠로 건너뛰기
Odoo 메뉴
  • 로그인
  • 무료 체험하기
  • 앱
    재무 관리
    • 회계
    • 청구서 관리
    • 비용 관리
    • 스프레드시트 (BI)
    • 문서
    • 전자 서명
    판매
    • CRM
    • 판매
    • POS 스토어
    • POS 레스토랑
    • 구독
    • 렌탈
    웹사이트
    • 웹사이트 빌더
    • 이커머스
    • 블로그
    • 포럼
    • 실시간 채팅
    • 온라인 학습 관리
    공급망
    • 재고 관리
    • 제조 관리
    • 제품 수명주기 관리 (PLM)
    • 매입
    • 유지관리
    • 품질
    인적자원 관리
    • 직원
    • 채용
    • 휴가 관리
    • 인사 평가
    • 인재 추천
    • 차량 관리
    마케팅
    • 소셜 마케팅
    • 이메일 마케팅
    • SMS 마케팅
    • 행사
    • 마케팅 자동화
    • 설문 조사
    서비스
    • 프로젝트
    • 작업 기록
    • 현장 서비스
    • 헬프데스크
    • 일정 관리
    • 일정 예약
    생산성
    • 메일 및 채팅
    • 전자 결재
    • IoT
    • VoIP
    • 지식 센터
    • WhatsApp
    타사 앱 Odoo 스튜디오 Odoo 클라우드 플랫폼
  • 인더스트리
    리테일
    • 서점
    • 의류 매장
    • 가구점
    • 식료품점
    • 철물점
    • 장난감 가게
    식음료 & 숙박업
    • 바 & 펍
    • 레스토랑
    • 패스트푸드
    • 게스트 하우스
    • 음료 유통업체
    • 호텔
    부동산
    • 부동산 중개업체
    • 건축 회사
    • 건설
    • 부동산 관리
    • 가드닝
    • 부동산 소유자 협회
    컨설팅
    • 회계 법인
    • Odoo 파트너
    • 마케팅 대행사
    • 법률 사무소
    • 인재 영입
    • 감사 및 인증
    제조 관리
    • 텍스타일
    • 메탈
    • 가구
    • 푸드
    • 양조장
    • 기업용 선물
    건강 & 피트니스
    • 스포츠 클럽
    • 안경점
    • 피트니스 센터
    • 웰니스 전문가
    • 약국
    • 미용실
    사업
    • 핸디맨
    • IT 하드웨어 및 지원 서비스
    • 태양 에너지 시스템
    • 제화업체
    • 클리닝 서비스
    • HVAC 서비스
    기타
    • 비영리 단체
    • 환경 에이전시
    • 광고판 임대
    • 사진
    • 자전거 임대
    • 소프트웨어 리셀러
    전체 인더스트리 찾아보기
  • 커뮤니티
    학습
    • 튜토리얼
    • 문서
    • 인증
    • 훈련
    • 블로그
    • 팟캐스트
    교육 역량 강화
    • 교육 프로그램
    • Scale-Up! 경영관리 게임
    • Odoo에 방문해보세요
    소프트웨어 신청
    • 다운로드
    • 버전 살펴보기
    • 릴리즈 내역
    협업
    • Github
    • 포럼
    • 행사
    • 번역
    • 파트너 등록
    • 파트너 대상 서비스
    • 회계 법인 정보 등록
    서비스 신청
    • 파트너 검색
    • 회계사 검색
    • 전문 상담 예약
    • 구현 서비스
    • 고객 정보
    • 고객 지원
    • 업그레이드
    Github 유튜브 트위터 링크드인 인스타그램 페이스북 스포티파이
    +1 (650) 691-3277
    데모 예약하기
  • 요금제
  • 고객 지원

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • 회계
  • 재고 관리
  • PoS
  • 프로젝트
  • MRP
All apps
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
도움말

odoo13ce, multi website, second website domain (site2.com) cannot handle alias (www.site2.com)

구독

이 게시물에 활동이 있으면 알림 받기

신고된 질문입니다
aliasmulti-website
3 답글
6325 화면
아바타
Nanyo Nanev

Hi,

I have got odoo13 community edition.
Single DB.
2 companies and 2 websites publicly accessible using Nginx reverse proxy. Each site has got public domain and DV wildcard SSL certificate installed and working correctly.
The first site is configured as site1.com and has no issues to respond if the request is to site1.com or www.site1.com.
The second site is configured as site2.com (no www.) and has no issues to respond to the request to site2.com, but if the request is www.site2.com it redirects the web user to site1.com!
By saying configured I mean Settings/Websites/Domain name = site1.com or site2.com
It works for site1.com - you can request site1.com or www.site1.com and the same website will open - website 1.
The same config for site2.com seems to work only if you request exactly what is written in the field of the domain name - site2.com. I had a play and amended the field from site2.com to www.site2.com. Yes, now you can open the website 2 only if you request www.site2.com. The site2.com will open website 1.
There is no option to put site2.com and www.site2.com, together in the same domain name field as all request will go to the website 1 only, i.e. website 2 cannot be reached.
Both domain DNS services are configured as follows:
site1.com -> a.a.a.a
www.site1.com is a cname to site1.com
site2.com ->a.a.a.a
www.site2.com is a cname to site2.com

As a result, the ping to each is leading to the same IP:
ping site1.com -> a.a.a.a
ping www.site1.com -> a.a.a.a
ping site2.com -> a.a.a.a
ping www.site2.com -> a.a.a.a

As expected the IP a.a.a.a is publicly accessible on port 80/443.

Nginx configuration for each block (virtual host) is identical and checked.

Do you know how can I let the web users go to the website 2 (site2.com) regardless of what they type - site2.com or www.site2.com?

Thank you in advance!

1
아바타
취소
zahid

I have same setting with 13CE. one database , two domains . domai1.com working fine domain2.com points to database selector.
How did you manage to get multi website/domain working ?

Nanyo Nanev
작성자

Odoo v.13 and v.14 can handle the first domain domain1.com with both domain1.com and the subdomain www.domain1.com, without any issues. The second domain (and any other on top) may have only one pointer - domain2.com or www.domain2.com, but not both. The result is:
domain1.com - resolves and opens the expected page
www.domain1.com - resolves and opens the desired page
domain2.com - if set up - resolves and opens the desired page, but the subdomain www.doamin2.com doesn't work
www.domain2.com - if set up - resolves and opens the desired page, but the domain domain2.com doesn't work

The experience with domains 3, 4 and so on is the same as per domain2.com

I have not received any help or proper communication from Odoo support at that time. My conclusion is multidomain is initially designed to serve a single company like:
domain1.com - works fine
www.domain1.com - works fine
any other subdomain like www will work fine as:
eshop.domain1.com - it is like an additional domain, but you do not need www.eshop.domain1.com as only the subdomain main name is enough.
intranet.domain1.com

It is advertised as multidomain and multi-company and generally speaking is true, but you cannot add two independent websites and to expect to request the content via www or without it for both.

I didn't play with the latest version 15 yet. And I do not plan to do it in the scope of the webserver.
I spun a VM with WP for the regular websites, where I need www. and the main domain. The eshop subdomain only can live on the Odoo.

Back to the question of why you can see the database selector? The reason is you didn't hide it. If you do it the problematic record will open the webpage of your domain1.com.

아바타
Kazim Kazim
베스트 답변

Hi @Nanyo, i have an issue with multi website domains. So when i define my second domain it redirects back to db selector and not the website. how did you manage to configure the multiple domains please

1
아바타
취소
Nanyo Nanev
작성자

Sorry, I didn't come here for a while. Please have a look at the answer I gave to zahid

아바타
Ermin Trevisan
베스트 답변

 You can use a CNAME DNS entry to link the subdomain www to a domain, or you can use a permanent redirect (301) in your reverse proxy. With nginx such a redirect looks like this:

server { 
# Redirect non-www to www
server_name example.com;
return 301 $scheme://www.example.com$request_uri;

with Caddy Server such a redirect looks like this:

example.com {
    redir https://www.example.com{uri}
}

About which way is to prefer (especially from a SEO perspective), you may find many interesting readings in the internet. When using redirects, you avoid the problem of indexing of both domains by search engines.


0
아바타
취소
Nanyo Nanev
작성자

Hi Ermin,

Thank you for your reply! If you read again the very first post you will see the CNAME DNS game has been played already. The reverse proxy at NGINX has been configured as you suggested before the first post. You are correct for the very first website in a multi-website configuration. The problem is with the second and next websites. The very first website works with the www subdomain and the domain only. Odoo interface will allow you to enter only one domain or subdomain (www), but not both. Apparently, it is not an issue for the first website. I decided I am not fluent and checked with two of the Gold partners. I have sent them the NGINX config and revealed the real domains so they checked the CNAME for both domains.

The only one solution is to have a "translator" before the reverse proxy and to convert the incoming request to the expected from Odoo (exactly what you put in the name of the domain at the Odoo interface). This translator can be anything, but the load balancer would do the job. I bet all customers at Odoo.com portal are welcomed by load balancers and they "translate" the request of www subdomain to the domain only.

I am happy to share in a personal message with you the DNS config and NGINX config. Also happy to jump into a screen sharing session with you. I appreciate you may know something that others and I do not.

I would be curious to test it with Odoo v15. I doubt it would be resolved as this is an isolated case and if you intend to have different domains it is highly likely to have load balancers with multiple apps and PostgreSQL boxes.

Ermin Trevisan

Using permanent redirects in the reverse proxy, you only send one hostname per domain to Odoo (either with or without www, upon your decision).

Ermin Trevisan

In my example Odoo will only receive requests for www.example.com, requests without www will be converted to www.example.com before it reaches Odoo.

Ermin Trevisan

To make it very clear: After the redirect, there is only one server_name (in nginx-language) left, you do not proxy both www and non-www domains afterwards.

아바타
Nanyo Nanev
작성자 베스트 답변

I have tested the same case in Odoo v14. Same results. It is not an issue. It is by design. If you want to have multiple websites and to have their www subdomain and their domain (www.domain.com + domain.com) you need a load balancer(s), where you can describe the rules and push the "correct" request to Odoo's NGINX.
I will take it as resolved (in a hard way)!

0
아바타
취소
Ermin Trevisan

I can not see any relation to load balancers.

토론이 재미있으신가요? 직접 참여해보세요!

지금 바로 가입하여 독점 서비스를 이용해보고 특별한 커뮤니티와 소통하세요!

가입
관련 게시물 답글 화면 활동
How to use the Odoo theme in multi-clone websites?
multi-website
아바타
0
3월 24
1684
Multi company/multi website leading to same website 해결 완료
multi-website
아바타
아바타
2
12월 23
5245
Questions on setting Odoo up for 2 websites on Linode Server (odoo v15)
multi-website
아바타
아바타
아바타
2
3월 23
2823
Alias Accepts Emails From ?
alias
아바타
0
12월 21
4536
Unable to create second website
multi-website
아바타
1
3월 20
2476
커뮤니티
  • 튜토리얼
  • 문서
  • 포럼
오픈 소스
  • 다운로드
  • Github
  • Runbot
  • 번역
서비스
  • Odoo.sh 호스팅
  • 고객 지원
  • 업그레이드
  • 맞춤 개발
  • 학습
  • 회계사 검색
  • 파트너 검색
  • 파트너 등록
회사 소개
  • 회사 소개
  • 브랜드 자산
  • 상담 문의
  • 인재 채용
  • 행사
  • 팟캐스트
  • 블로그
  • 고객 사례
  • 법적고지 • 개인정보
  • 보안
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo는 CRM, 이커머스, 회계, 재고, POS, 프로젝트 관리 등 기업의 모든 요구 사항을 충족하도록 설계된 오픈 소스 기반의 통합 비즈니스 앱 제품군입니다.

Odoo의 간편한 UI와 완벽하게 통합된 기능을 직접 확인해 보세요.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now