500 Internal Server Error

500 Internal Server Error

QA

500 Internal Server Error

본문

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

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

 

에러 내용을 보자면 

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

 

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

 

 

답변을 작성하시기 전에 로그인 해주세요.
전체 24
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT