Home CentOS7 Nginx conflicting server name “domain.co.kr” on 0.0.0.0:443, ignored 오류

Nginx conflicting server name “domain.co.kr” on 0.0.0.0:443, ignored 오류

by maxblog
0 comment
conflicting server name "domain.co.kr" on 0.0.0.0:443, ignored
conflicting server name "www.domain.co.kr" on 0.0.0.0:443, ignored

Nginx 오류로그에서 위와 같은 메세지를 볼수 있을 때가 있다.
또한 이럴 때는 다음과 같은 에러메세지를 내며 페이지가 뜨지 않을때가 있다.

페이지가 작동하지 않습니다.

쿠키 삭제해 보기.

리디렉션한 횟수가 너무 많습니다.
ERR_TOO_MANY_REDIRECTS

이런경우 Nginx의 conf 파일에 server name 설정이 잘못되어 발생한다.
도메인.conf Nginx 파일을 열러 모두 자세히 살펴보며 중복된 값을 없애고
정확하게 설정을 다시해주면 없어지는 경우를 확인했다.

Nginx conf 파일에 server name 부분이 중복될경우 발생하므로
Nginx conf 파일에서 중복된 server name 부분을 찾아서 중복되지 않도록 고쳐준다.

설정이 힘드므로 설정이 잘되어있는 conf 파일을 복사해서 도메인 부분만 한번에 바꿔주고
Nginx를 다시 시작하니 한방에 잘 되었다.

바꾼뒤에는 Nginx에서 다시 conf 들을 읽어들여야하므로 꼭 다시 Nginx를 재시작 해주고
접속해야한다.

banner

좋아할만한 추천 글

Leave a Comment

Soledad is the Best Newspaper and Magazine WordPress Theme with tons of options and demos ready to import. This theme is perfect for blogs and excellent for online stores, news, magazine or review sites.

Buy Soledad now!

Edtior's Picks

Latest Articles

ⓒ 2023.  FUNCOM all rights reserved.