Small blog about system administration.

How to disable mod_security in Parallels Plesk for one domain

For Plesk and similar systems you can also disable modsecurity in the Apache configuration.

Step 1) Edit the vhost/vhost_ssl.conf for the domain

#vim /var/www/vhosts/<DOMAINNAME>/conf/vhost.conf 

Step 2) Add the following

<IfModule mod_security2.c> SecRuleEngine Off </IfModule>

Step 3) Add vhost.conf to domain config

#/usr/local/psa/admin/bin/websrvmng -a

Step 4) Restart Apache

#service httpd restart

If it's needed to disable mod_security globally, just disable config file:

#mv /etc/httpd/conf.d/00_mod_security.conf /etc/httpd/conf.d/00_mod_security.conf.disabled

and restart httpd

#service httpd restart 

No comments :

Post a Comment