테스트 사이트 - 개발 중인 베타 버전입니다

500 Internal Server Error 채택완료

인디안바압 4년 전 조회 2,908

1. vps로 서버이전 중입니다.

2. 도메인 땡겨오느라 불안정한 상황입니다.

 

어제까지만 해도 불안정하긴 했으나 구서버나, 신서버나 접속이 되긴 됐었습니다.

그런데 오늘부터 갑자기 엄청나게 딜레이 생기더니 500에러를 뱉어내네요;; (그 사이 손댄것은 없습니다.)

 

3. 티켓을 이용하여 apm등을 설치했는데, 보니까 아파치랑 nginx랑 두 가지가 깔려있었습니다.

우선 아파치부터 에러코드를 살펴봤는데요

 

[Fri Apr 16 05:27:43.860910 2021] [core:notice] [pid 10462] SELinux policy enabled; httpd running as context system_u:system_r:unconfined_service_t:s0 [Fri Apr 16 05:27:43.862814 2021] [ssl:warn] [pid 10462] AH01909: 185-217-92-106.cprapid.com:443:0 server certificate does NOT include an ID which matches the server name [Fri Apr 16 05:27:43.863322 2021] [ssl:warn] [pid 10462] AH01909: 185-217-92-106.cprapid.com:443:0 server certificate does NOT include an ID which matches the server name [Fri Apr 16 05:27:43.863578 2021] [:notice] [pid 10462] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured. [Fri Apr 16 05:27:43.863587 2021] [:notice] [pid 10462] ModSecurity: APR compiled version="1.7.0"; loaded version="1.7.0" [Fri Apr 16 05:27:43.863594 2021] [:notice] [pid 10462] ModSecurity: PCRE compiled version="8.32 "; loaded version="8.32 2012-11-30" [Fri Apr 16 05:27:43.863597 2021] [:notice] [pid 10462] ModSecurity: LUA compiled version="Lua 5.1" [Fri Apr 16 05:27:43.863600 2021] [:notice] [pid 10462] ModSecurity: YAJL compiled version="2.0.4" [Fri Apr 16 05:27:43.863602 2021] [:notice] [pid 10462] ModSecurity: LIBXML compiled version="2.9.7" [Fri Apr 16 05:27:43.863604 2021] [:notice] [pid 10462] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.  

 

라고 떠있고 nginx 에러로그같은 경우에는 

 

2021/04/17 07:32:55 [emerg] 11307#11307: invalid number of the map parameters in /etc/nginx/conf.d/ea-nginx.conf:14 2021/04/17 07:32:58 [emerg] 11760#11760: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:32:58 [emerg] 11760#11760: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:32:58 [emerg] 11760#11760: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:32:58 [emerg] 11760#11760: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:32:58 [emerg] 11760#11760: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:32:58 [emerg] 11760#11760: still could not bind() 2021/04/17 07:33:01 [emerg] 11806#11806: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:33:01 [emerg] 11806#11806: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:33:01 [emerg] 11806#11806: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:33:01 [emerg] 11806#11806: bind() to 0.0.0.0:443 failed (98: Address already in use) 2021/04/17 07:33:01 [emerg] 11806#11806: bind() to 0.0.0.0:443 failed (98: Address already in use)  

라고 뜹니다. 클플 사용중이며 ssl도 아마 적용되어 있는걸로 압니다.

접속이 잘 되다가 갑자기 이러는 이유를 모르겠습니다. 

무엇을 보면 되는걸까요?

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
4년 전

우선 SELinux 를 꺼보시고 nginx 또는 아파치 둥중 하나를 비활성화 시키고 테스트 해 보세요.

 

에러 내용을 보자면 

nginx는 잘못된 매개변수에 의한 에러이고 아파치는 서버 인증서에 서버 이름과 일치하는 ID가 포함되어 있지 않다고 되어 있습니다.

 

확인 하셔서 수정해 주셔야 할듯 싶네요.

 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인