- 아파치 소프트웨어 재단에서 만든 웹 서버 프로그램
- 처음 웹 개발을 배울때 Apache + PHP + MySQL을 통틀어 "APM"이라 통칭하면서 웹 서버를 돌리기 위한 기존 3종 세트를 접하게 된다
- 최근에는 nginx가 나오면서 비교가 되기 시작했고, 우리나라 추세로는 nginx 사용률도 높아지고 있는듯
- 확장성이 좋은데, 모듈이란 개념으로 수 많은 기능을 덧붙일 수 있다만은, 이 기능을 다 사용하는 사람은 매우 드물다
MPM 다중처리모듈
- Client로 부터 요청을 받게 되면 MPM, Multi Processing Module 방식으로 처리를 하는데 대표적으로 두가지 방식이 있다
Prefork MPM
- 실행중인 프로세스를 복제하여 처리한다
- 각 프로세스는 한번에 한 연결만 처리
- 요청량이 많아질수록 프로세스도 증가하지만 복제할때 메모리영역까지 복제되므로 각 프로세스간에 메모리 공유 없이 안정적이라 볼 수 있음
Worker MPM
- 1개의 프로세스로 1개의 쓰레드만 사용한 Prefork와 달리 Worker는 1개 프로세스로 여러개의 쓰레드를 사용하는 방식
- 쓰레드간의 메모리를 공유하기에 Prefork보단 메모리를 덜 사용한다는 이점이 있음
관련 트러블 슈팅?
Host key verification failed
- Apache를 새로 설치하거나 재실행 중 위와 같은 로그가 남았다면, 서비스 도메인이 올바른 SSL 인증서를 가지고 있는지 확인해보자
- 아래 명령어가 요새 (21년 10월) 도 통할지는 모르겠으나 수행하면 인증서에 대한 도메인 정보를 확인할 수 있다