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 룰 관련 에러 문제는 워낙 다양하고 복잡해서
당장 서비스를 띄우기 위해 이렇게두고 차차 대응하는것이 합리적이다.
'Linux > CentOS' 카테고리의 다른 글
yum update시 No more mirrors to try 문제해결 (0) | 2023.07.06 |
---|---|
CentOS7 / nginx / mod_security / 컴파일 설치 (0) | 2022.08.18 |
yum(dnf) update 시 'Cannot download All mirrors were tried' (0) | 2022.07.23 |
centOS 8 에서 repo 사용시 'AppStream' 에러해결 (0) | 2022.07.23 |