vhost.conf Equivalent?

4 posts / 0 new
Last post
#1 Tue, 01/10/2012 - 09:05
webwzrd

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?

Tue, 01/10/2012 - 10:01
andreychek

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

Tue, 01/10/2012 - 10:16
webwzrd

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

Tue, 01/10/2012 - 11:55
andreychek

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

Topic locked