[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-admin
Subject:    Re: Apache VirtualHost Directive
From:       semat <semat () wawa ! eahd ! or ! ug>
Date:       2000-11-27 14:25:03
[Download RAW message or body]

Actually you should say
<VirtualHost 192.x.x.x>
DocumentRoot blah blah blah
ServerName www.domain.com
</VirtualHost>
Mark use the ip not the domain name and before that you should have
NameVirtualHost 192.x.x.x
the directive is somewhere just above the Virtualhosts section.

On Sun, 26 Nov 2000 nicholas@bcnsi.net wrote:

> I have two VirtualHost directives in my httpd.conf. 
> 
> The first points to /docroot/www
> 
> (VirtualHost www.domain.com)
> DocumentRoot /home/httpd/www
> ..
> <\VirtualHost>
> 
> The next points to /docroot/mail
> 
> <VirtualHost mail.domain.com>
> DocumentRoot /home/httpd/mail
> ..
> <\VirtualHost>
> 
> If I point my browser to either www.domain.com or mail.domain.com both go to \
> /docroot/mail. It seems to ignore the first virtualHost documentroot directive.  \
> I've tried using a VirtualHostName ipaddre directive and it doesn't seem to make a \
> difference.  Does anyone have a working example of VirtualHost configuration in \
> httpd.conf? 
> Thanks  
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic