1. Nginx 동적 모듈 컴파일
Nginx의 동적 모듈 컴파일은 버전 1.11.5부터 가능하다.
2. 진행
1) Nginx가 사용하려는 모듈을 지원하는 버전인지 확인.
2) 모듈 소스 확보
#기본 테스트 모듈 sudo git clone https://github.com/persuio/nginx-hello-world-module.git unzip nginx-hello-world-module-master.zip
필요시 모듈 config를 수정하여 커스터마이징을 진행.
3) 컴파일
./configure --with-compat --add-dynamic-module=[PATH] make modules
4) 모듈 옮기기(원하는 위치)
cp objs/[생긴모듈] [module 보관 PATH]
5) nginx에 모듈 추가(사용)
#nginx.conf load_module modules/[moduleName].so