vhosts outside the default document root

vhosts outside the default document root

am 04.10.2007 16:02:36 von Pi

Hi guys,
I need someone to help me crack this please:

the default DocumentRoot is /var/www/html on a Fedora core machine. I
have successfully configured a couple of vhosts within the default
DocumentRoot. I however need to create a different vhost outside the
file structure/hierarchy of the default document root to say, /home/
data/hosts - this has simply refused to work

I have my directory directives:

....
....
and my vhosts set to include the alternative path as in


DocumentRoot /home/....
.....
.....
but it simply will not see it. Please tell me what I need to do.
thanks.

Re: vhosts outside the default document root

am 04.10.2007 18:40:00 von phantom

"PI" wrote in message
news:1191506556.819139.86440@y42g2000hsy.googlegroups.com...
> Hi guys,
> I need someone to help me crack this please:
>
> the default DocumentRoot is /var/www/html on a Fedora core machine. I
> have successfully configured a couple of vhosts within the default
> DocumentRoot. I however need to create a different vhost outside the
> file structure/hierarchy of the default document root to say, /home/
> data/hosts - this has simply refused to work
>
> I have my directory directives:
>
> ...
> ...
> and my vhosts set to include the alternative path as in
>
>
> DocumentRoot /home/....
> ....
> ....
> but it simply will not see it. Please tell me what I need to do.
> thanks.

Your virtual host definition looks wrong...

You should have a line somewhere in your config file:

NameVirtualHost *
or maybe
NameVirtualHost *:80

The * or *:80 needs to match in the VirtualHost entry -


ServerName blah.com
DocumentRoot /home/...
....