httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Shraibman <...@selectacast.net>
Subject Re: [users@httpd] NameVirtualHost only works for one ip address
Date Wed, 17 Nov 2004 16:59:49 GMT
That gives me ip based virtual hosts, which is not what I want.  I want 
my name based virtual hosts to work on all ip addresses

Warron French wrote:
> Can't you also specify in each VirtualHost container the port and IP address?
> 
> 
> I mean specifically you could do this:
> 
> 
> NameVirtualHost 192.168.1.2:80 (if that's the port you are listening on)
> NameVirtualHost 192.168.0.1:80 (if that's the port you are listening on as well)
> 
> 
> <VirtualHost 192.168.1.2:80>
> ...
> ...
> ...
> </VirtualHost>
> 
> #  && then
> 
> <VirtualHost 19.168.0.1:80>
> ...
> ...
> ...
> </VirtualHost>
> 
> This is something else you could do as well.
> 
> 
> If you want a paper reference there are ORA (O'reilly and Associates) textbooks that
are awesome references.  There are many just for the category of web administration alone!
> 
> 
> Warron French
> Sr. Network Engineer
> Xtria, LLC
> 
> 
> -----Original Message-----
> From: Ivan Barrera A. [mailto:Bruce@Ivn.cl]
> Sent: Monday, November 15, 2004 8:37 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] NameVirtualHost only works for one ip address
> 
> 
> 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
> 
> 
> ---------------------------------------------------------------------
> 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