Nginx LB 서버 - nginx.conf
·
DevOps/Linux
프로젝트를 진행하면서 서버 이중화를 위해 LB서버로 Nginx를 이용하여 구성한 내용을 정리했습니다.이전 글에서 Nginx 컴파일 설치 과정을 정리했습니다.이번 글에서는 proxy 설정과 서버 이중화를 위한 설정을 정리해보겠습니다.이전 글에서 nginx 컴파일 설치를 하며 주요 디렉터리 경로를 따로 지정한 후 주로 사용하는 명령어는 다음과 같다.# nginx 서비스 명령어 - nginx.service 파일을 systemd에 등록하여 아래 명령어로 사용 가능systemctl daemon-reloadsystemctl enable nginx.servicesystemctl start nginxsystemctl status nginxsystemctl stop nginx# nginx.conf 설정 내용 체크cd /..