Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to disable mod_security in Parallels Plesk for one domain?  (Read 3769 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
How to disable mod_security in Parallels Plesk for one domain?
« on: November 17, 2013, 03:29:43 am »

For Plesk,  we can disable modsecurity for one domain in Apache configuration by follow the bellow given steps:

  • Edit the vhost/vhost_ssl.conf for the domain:

Code: [Select]
#vim /var/www/vhosts/<DOMAINNAME>/conf/vhost.conf
  • Add the following:

Code: [Select]
<IfModule mod_security2.c> SecRuleEngine Off </IfModule>
  • Add vhost.conf to domain config:

Code: [Select]
#/usr/local/psa/admin/bin/websrvmng -a
  • Restart Apache:

Code: [Select]
#service httpd restart
  • If it's needed to disable mod_security globally, just disable config file:

Code: [Select]
#mv /etc/httpd/conf.d/00_mod_security.conf /etc/httpd/conf.d/00_mod_security.conf.disabled
and restart httpd

Code: [Select]
#service httpd restart
--