Matus UHLAR - fantomas wrote:

> >>> 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.
> 
> > Steve Swift wrote:
> > > 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.
> 
> On 04.11.11 08:09, Helmut Schneider wrote:
> > 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.
> 
> then you must define two virtual hosts.
> 
> NameVirtualHost 192.168.0.1
> 
> <VirtualHost 192.168.0.1>
> ServerName 192.168.0.1
> </VirtualHost>

Ha! Servername $IPADDRESS. That one worked!

Thanks, Helmut


---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to