httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Barrera A." <Br...@Ivn.cl>
Subject Re: [users@httpd] NameVirtualHost only works for one ip address
Date Tue, 16 Nov 2004 01:36:42 GMT
You should add some virtual host to any of those addresses :

<VirtualHost 192.168.1.2>
.....
.</VirtualHost>

Or better yet.. use * to listen on all addressess

NameVitualHost *

<VirtualHost *>
.....
.</VirtualHost>


----- Original Message ----- 
From: "Joseph Shraibman" <jks@selectacast.net>
To: <users@httpd.apache.org>
Sent: Monday, November 15, 2004 8:20 PM
Subject: [users@httpd] NameVirtualHost only works for one ip address


> My server has two different ip addresses.  The websites on the server
> will resolve to one of these two ips, based on where the lookup comes
> from.  In my conf file it looks like:
>
> NameVirtualHost 192.168.1.2
> NameVirtualHost 192.168.0.1
>
>
> The problem is that apache will only use one of these ips.  When I start
> up I get:
>
> [notice] Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7a configured
> -- resuming normal operations
> [notice] SIGHUP received.  Attempting to restart
> [warn] NameVirtualHost 192.168.0.1:0 has no VirtualHosts
>
> ... and any requests that go to that ip end up showing me the default
> apache config page.  How do I fix this?
>
>
>
> ---------------------------------------------------------------------
> 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
>
>


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