Install Mod Security on CentOS 6.x
1. Install the required libraries:
#yum install httpd-devel libxml2-devel PCRE apr-devel apr-util-devel-devel curl-devel -y
#yum install gcc
2. Install mod_security
# yum install mod_security
3. Configure Apache
+ #vim /etc/httpd/conf/httpd.conf
Remove the # before the line:
Unique_id_module LoadModule modules / mod_unique_id.so
And add the line:
Security2_module LoadModule modules / mod_security2.so
+ Create a configuration file to Module:
#vi /etc/httpd/conf.d/modsecurity.conf
Add content check whether active or not the picture below
4. Restart the service
#service httpd restart
5. Check the operation of Mod Security
+ Open the browser to enter http: // localhost / a? = Zzz
+ Open the event log records
I wish you success:
Lượt xem (959)
Để lại bình luận: