[CentOS] Apache DocumentRoot

Brian Mathis brian.mathis at gmail.com
Wed Jan 6 21:45:45 UTC 2010

On Wed, Jan 6, 2010 at 4:34 PM, Joseph L. Casale
<jcasale at activenetwerx.com> wrote:
> I just assumed that setting this in the httpd.conf to the expected
> /var/www/html and making all my sites actual virtual hosts would
> place any request made by ip in /var/www/html, but it goes to the
> first vhost?
> How can I get the above behavior?
> Thanks!
> jlc

Read the apache docs.  As soon as you make any vhost, the first one
becomes the default.  Make the first vhost with the same settings as
the defaults in the rest of the httpd.conf file, and you'll get the
behavior you're looking for.

More information about the CentOS mailing list