vhost.conf Equivalent?

I’m trying to follow some instructions that ask me to put some code in:

/var/www/vhosts//conf/vhost.conf

What is the Virtualmin equivalent to that?

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 .*>

SecRuleRemoveById 950005
SecRuleRemoveById 950006


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