httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Virtual host causing problems with default server
Date Thu, 10 Jul 2003 13:45:15 GMT
Robert Moskowitz wrote:
> I originally did not use the command:
>
> NameVirtualHost
>
> I added it both trying:
>
> NameVirtualHost www.home.com
>
> and
>
> NameVirtualHost home.com
>
> with no change.

Does www.home.com and home.com resolve to different IPs? If not, why do you
have them both? NameVirtualHost tells Apache which IP/port combinations to
use for name-based virtual hosting. It is always prefered to use the IP
instead of hostname:
http://httpd.apache.org/docs-2.0/mod/core.html#namevirtualhost

> I tried adding:
>
> <VirtualHost home.com>
>      ServerAdmin abc@home.com
>      DocumentRoot "D:/Pages"
>      ServerName abc.org:80
>      ErrorLog logs/error.log
>      CustomLog logs/access.log common
> </VirtualHost>
>
> And this produced some error that flashed too quick across the screen, but
> something like
>
> 'this conflicts with the default server'

If this was in addition to the other VHost, the problem is that you have
given two VHosts the same ServerName, which, of course, is conflicting.

> and still no access to home.com

Is home.com defined as a virtual host? If that is your "main server" and it
isn't sitting on a different IP than your virtual hosts, you won't ever
reach, due to reasons previously explained. If you are using name-based
virtual hosting, you must define each site/domain as a virtual host. With a
few exceptions, once you start adding virtual hosts, your "main
configuration" only becomes the default configuration for the virtual hosts;
not a host of its own.

If you still have problems, please summarize your case again, since this has
become a bit confusing.

Regards,
Robert Andersson




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message