This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
Well, I'm not entirely certain what a vhost.conf file is... in some quick Googling, that appears to be a Plesk-specific setup. Is that just the Apache configuration for a given domain?
If so, then you could make those modifications in either /etc/httpd/conf/httpd.conf, or /etc/apache2/sites-enabled/domain.tld.conf, depending on your distribution.
Hmm, I think that would work. If you're using CentOS, you could edit the VirtualHost block in the httpd.conf for the domain in question, and add those lines -- that should work as expected.
Howdy,
Well, I'm not entirely certain what a vhost.conf file is... in some quick Googling, that appears to be a Plesk-specific setup. Is that just the Apache configuration for a given domain?
If so, then you could make those modifications in either /etc/httpd/conf/httpd.conf, or /etc/apache2/sites-enabled/domain.tld.conf, depending on your distribution.
-Eric
Sorry, guess I didn't give much information. You're right, I think vhost is common to Plesk.
I'm setting up some virtual server exclusions for modsecurity as per the instructions here: http://www.atomicorp.com/wiki/index.php/Mod_security
Would it make sense that I could add something like this to httpd.conf for a given domain?
<LocationMatch .*>
<IfModule mod_security2.c>
SecRuleRemoveById 950005
SecRuleRemoveById 950006
</IfModule>
</LocationMatch>
Brian
Hmm, I think that would work. If you're using CentOS, you could edit the VirtualHost block in the httpd.conf for the domain in question, and add those lines -- that should work as expected.
-Eric