Nginx Ubuntu nginx: [emerg] unknown directive "stream" in /etc/nginx/nginx.conf:307

2025. 2. 3. 20:35Web Server/nginx

증상

stream 모듈이 보이지 않지만, postreSQL을 proxy할 때는 잘 작동함
특정 시점에 error 로그에 해당 내용이 남음
인증서 갱신할때도 stream관련 문구를 해석하지 못하는 문제 있음

확인

nginx -V

조치: 모듈 재설치

모듈을 재설치해도 conf 파일은 덮어치지 않음

./configure \
기존 적용 내용 
..
--with-stream
# 하는 김에 dynamic도 추가함
--with-stream=dynamic

sudo make install

확인 및 재시작

sudo nginx -t

sudo systemctl restart nginx

# 확인
nginx -V

 

'Web Server > nginx' 카테고리의 다른 글

Nginx ubuntu에 컴파일시 확인 사항  (0) 2025.02.05
Nginx 요청에 응답하지 않고 drop하기  (0) 2025.02.04
차단 IP 목록  (0) 2025.02.01
Nginx 특정 IP 막기  (0) 2025.02.01
Nginx 414 Request-URI Too Large 에러 조치  (0) 2025.01.30