Apache mod_security 에서 Execution error - PCRE Limits exceeded (-8) 오류 처리 방법 > 개발

본문 바로가기

사이트 내 전체검색

뒤로가기 개발

Apache mod_security 에서 Execution error - PCRE Limits exceeded (-8) 오류 …

페이지 정보

작성자 관리자 (61.♡.26.87) 작성일 20-04-07 16:04 조회 3,785 댓글 0

본문

apache 2.x 에서 mod_security 를 운영하는데,
아래와 같은 Error Log 가 쌓인다.

.... Execution error - PCRE Limits exceeded (-8): (null). ....


ㅁ 원인

오류 메시지 그대로, PCRE Limits 가 exceeded 란다.
QueryString 이나 Post 로 넘기는 파라미터가 매우 길어서 발생하는 듯 하다.


ㅁ 해결 방법

아래의 아파치 mod_security 설정파일에 보면 PCRE 관련 설정이 있다.
/etc/httpd/conf.d/mod_security.conf

SecPcreMatchLimit 1000
SecPcreMatchLimitRecursion 1000

위 두 설정값을 늘리고, 아파치 서버를 재시작한다.
아래처럼 10배 정도 늘려 주었다.

SecPcreMatchLimit 10000
SecPcreMatchLimitRecursion 10000


ㅁ 주의

위 PCRE 관련 설정 변수는 VirtualHost 에서는 사용할 수 없다.


* 참고
https://hipekr.tistory.com/archive/201511?page=3
https://bobcares.com/blog/modsecurity-pcre-limits-exceeded/

추천0

댓글목록 0

등록된 댓글이 없습니다.

전체 386건 7 페이지
게시물 검색
Copyright © Baragi.Net All rights reserved.
PC 버전으로 보기