Plesk + Mod Security
Jun 15, 2009 · 2 minute readCategory: apache
This is post is now quite old and the the information it contains may be out of date or innacurate.
If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub
Instead the way to do it is to edit the vhost.conf file located in the conf folder in the domain / sub domain root (the folder containing the httpdocs folder).
You can apply any settings you want to this file and then run the following command to get Plesk to rebuild your httpd configuration including your new settings. This is working with Plesk the way it was intended to be used and is a better solution that the htaccess file approach.
The command to rebuild your Apache configuration when you make a change to the vhost.conf ssl_vhost.conf file is:
/usr/local/psa/admin/bin/websrvmng -a -v
This rebuilds the configuration for ALL virtual hosts. It shouldn’t take more than a few seconds, obviously you then need to restart Apache.