Monday , 20 February 2017
Home » English » Install Mod Security on CentOS 6.x

Install Mod Security on CentOS 6.x

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

install library

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

httpd


+ Create a configuration file to Module:

#vi /etc/httpd/conf.d/modsecurity.conf

Add content check whether active or not the picture below

rules of ModSecurity

4. Restart the service

#service httpd restart

restart apache

 5. Check the operation of Mod Security

+ Open the browser to enter http: // localhost / a? = Zzz

apache error

+ Open the event log records

apache log

 

I wish you success:

Lượt xem (936)

About Nguyễn Thanh Sơn

Nguyễn Thanh Sơn
Network Security, Web Design, Computer Science

Xem thêm

31_white_abstract

Denial of service vulnerability in the OpenSSL serious

OpenSSL founder recently batch processing flaw in their coding library includes a serious flaw could …

Để lại bình luận:

Loading Facebook Comments ...

Leave a Reply

Your email address will not be published. Required fields are marked *