httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Bligh <a...@alex.org.uk>
Subject Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?
Date Thu, 31 May 2012 10:47:24 GMT


--On 31 May 2012 08:34:42 +0100 Alex Bligh <alex@alex.org.uk> wrote:

> To recap the problem is that accessing http://192.200.0.1/ returns the
> default site (the first one), not the specific site (the third).
>
> Suppose I change the line marked '*** THIS LINE ***" so it reads
>  <VirtualHost *:80>  # <--- *** THIS LINE ***
>
> Will that interfere in any way with the IP based virtual host which is
> the fourth above? I have no other name based virtual hosts and even if
> I did, I wouldn't mind this being the global default. And will it fix
> the issue that http://192.200.0.1/ is not connecting to the third
> virtual host block above?

This fails because <VirtualHost *:80> does not appear to set
a default when you also have a <VirtualHost 192.200.0.1:80>. The
latter always becomes the default.

-- 
Alex Bligh

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message