(긴급)ㅠㅠ APM설치 이후 Modsecurity적용문제입니다.
작성자 정보
- 조우균 작성
- 작성일
컨텐츠 정보
- 2,574 조회
- 1 댓글
- 0 추천
- 목록
본문
[root@XXXX apache2]# curl --head 192.168.171.151
HTTP/1.1 200 OK
Date: Mon, 13 Jul 2009 01:02:31 GMT
Server: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a PHP/5.2.6
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=46fd96205c71aff345de5b39b57286be; path=/
Last-Modified: Mon 15 Jun 2009 18:11:46 GMT
ETag: "Mon 15 Jun 2009 18:11:46"
Content-Type: text/html
위와 같은 환경입니다.
아파치 2.2.9 이며 php 5.2.6 입니다.
modsecurity 설치를 위하여 pcre-7.7을 설치한후
modesecurity 2.1.7버전을 설치 하였습니다.
Makefile 파일에서 루트 수정해주었고
LoadModule Security2_module modules/mod_security2.so
LoadFile /usr/local/lib/libxml2.so
를 httpd.conf에 추가하였습니다.
modsecurity.conf-mainimal 파일을 httpd/conf/modsecurity.conf로 복사하였으며 다시 httpd.conf 마지막라인에
Include conf/modsecyrity.conf 를 추가하였습니다.
여기에서 mod_unique_id.c 를 apxs - cia 로 설치 하였는데
아파치를 재시작하면 이런문구가 나옵니다.
[Mon Jul 13 10:09:50 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jul 13 10:09:50 2009] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "demo"
Configuration Failed
어디를 잘못한건가요?
그리고 한가지더 입니다.
httpd.conf 파일에서
mod_unique.id.c 모듈 올라온것을 주석처리하고
아파치를 실행하면 아파치는 동작합니다.
그런데 오류메세지에
[Mon Jul 13 10:17:09 2009] [error] ModSecurity: ModSecurity requires mod_unique_id to be installed.
이말은 unique_id 설치하라는거 아닌가요?
주석을 지우면 다시 또 아파치작동안되고
급합니다 ㅠㅠ
관련자료
-
이전
-
다음
이윤후님의 댓글
- 이윤후
- 작성일
이옵션을 안주면 modsecurity가 제대로 작동이 안되는걸루 알고있습니다