httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helmut Schneider" <jumpe...@gmx.de>
Subject [users@httpd] Re: Server default vhost
Date Fri, 04 Nov 2011 08:09:20 GMT
Steve Swift wrote:

> > let's say I have a webserver named www.domain.tld at IP 192.168.0.1.
> > That server serves http://www.domain.tld.
> > 
> > Now I want to have another VHOST serving http://192.168.0.1 (the
> > DEFAULT VHOST e.g. to serve /server-status because
> > http://www.domain.tld requires authentication).
> > 
> > How would I do so?
> > 
> > I unsuccessfully tried numerous variations of NameVirtualHost,
> > VirtualHost and ServerName but apache either serves www.domain.tld
> > or 192.168.0.1 for all requests.
>
> Once you have your Virtualhosts setup, the first one becomes the
> default for any requests which do not match the
> ServerName/ServerAlias in any other Virtualhost.

But - both www.domain.tld and 192.168.0.1 match the same vhost (at
least what I observed). I want both to match different vhosts.


---------------------------------------------------------------------
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