|
|
|
|
|
|
|
 |
 |
게시판 문의상담 |
|
|
1 : 1 문의하러가기
|
|
 |
서버 / IDC |
|
|
신청/운영 : 02-6959-3661
서버요금/결제 : 02-6959-3660
|
|
 |
클라우드 |
|
| 031-724-4846
|
|
 |
문자메세지 |
|
| 031-698-4744
|
|
|
|
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| modsecurity 설치 방법
ModSecurity 설치하기
1. apache 버전을 확인하고 확인이 되었으면 ModSecurity 홈페이지에 가서 해당되는 버전으로 다운을 받습니다.
wget http://www.modsecurity.org/download/modsecurity-apache_2.6.5.tar.gz
3. ModSecurity이 구동되기 위해서는 몇 가지 라이브러리가 미리 설치되어 있어야 합니다.
ModSecurity 2.x 는 Apache 2.0.x 이상에서 동작합니다.
Version 2.2.x 을 추천합니다.
mod_uniqueid : 아파치 패키지에 설치되어있습니다.
libapr and libapr-util : http://apr.apache.org/
libpcre :
yum -y install pcre
yum -y install pcre-devel
libxml2 : ftp://xmlsoft.org/libxml2/
liblua v5.1.x : http://www.lua.org/download.html
libcurl v7.15.1 or higher : http://curl.haxx.se/libcurl/
4. 위의 라이브러리가 모두 설치되어 있다면 ModSecurity의 설치를 진행합니다.
# tar xzvf modsecurity-apache_2.6.5.tar.gz
4.1. 컴파일 준비 단계
# ./configure 또는
# ./cinfigure --with-apxs=/path/to/httpd-2.x.y/bin/apxs
4.2. 컴파일
# make
# make mlogc (옵션, 로그컬렉터)
4.3. 설치
# make install
5. Apache 환경설정 파일(httpd.conf) 편집 (순서 유의)
# LoadFile /usr/lib/libxml2.so
# LoadFile /usr/lib/liblua5.1.so
# LoadModule security2_module modules/mod_security2.so
6. Apache 웹서버 재시작
# service httpd configtest --> Syntax OK 확인 후
# service httpd restart 또는 # apachectl restart |
|
|
|
|
|
|
 |
|
|
|
|
|
|