Linux/CentOS

ModSecurity: StatusEngine call failed 문제 임시해결

데브믹서 2022. 8. 18. 10:24
2022/08/18 10:15:17 [notice] 19676#0: ModSecurity for nginx (STABLE)/2.9.1 (http://www.modsecurity.org/) configured.
2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: APR compiled version="1.4.8"; loaded version="1.4.8"
2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: PCRE compiled version="8.32 "; loaded version="8.32 2012-11-30"
2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: LIBXML compiled version="2.9.1"
2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: StatusEngine call: "2.9.1,nginx,1.4.8/1.4.8,8.32/8.32 2012-11-30,(null),2.9.1,f331144388187e0e63cf1c3b615b32ba39be8887"
2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: StatusEngine call failed. Query

nginx + modSecurity 같이 설치하고 난후

nginx 시작이 느리고 에러로그( /usr/local/nginx/logs/error.log )에 위와 같은 오류가 발생함

 

해당 부분은 modSecurity 쪽에 상태 정보를 보내는 모듈이 제대로 동작하지 않아서 생긴 문제.
modSecurity 쪽에서 서비스를 내려서 생기는 문제로 보인다

 

modsecurity.conf 설정 파일에서 
최하단에 SecStatusEngine 을 Off 로 설정하면 일단 임시로 해결됨

modsecurity 룰 관련 에러 문제는 워낙 다양하고 복잡해서
당장 서비스를 띄우기 위해 이렇게두고 차차 대응하는것이 합리적이다.