Friday , 20 September 2019
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 (904)

About Nguyễn Thanh Sơn

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

Xem thêm

mohinh-juniper

Configuring Topology network equipment Juniper

Continue with the basic article on Juniper devices, network security today actual models configured with: …

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

Loading Facebook Comments ...

Leave a Reply

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