httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Crawford <All...@mailcode.com>
Subject RE: Host: ignored ?
Date Mon, 22 Jul 2002 14:27:13 GMT
Can't use just use <VirtualHost *> so that you can still dynamically
generate the file for multiple machines?

 -----Original Message-----
From: 	Matus "fantomas" Uhlar [mailto:uhlar@fantomas.sk] 
Sent:	Monday, July 22, 2002 5:43 AM
To:	users@httpd.apache.org
Subject:	Re: Host: ignored ?

-> >when I request for home.nextra.sk with this config, i still get
-> >default.nextra.sk:
-> >
-> ><VirtualHost home.nextra.sk>
-> >ServerName default.nextra.sk
-> >DocumentRoot /clients/www/default.nextra.sk
-> >Alias /icons/ /usr/local/www/icons/
-> ></VirtualHost>
-> >
-> ><VirtualHost home.nextra.sk>
-> >ServerName home.nextra.sk
-> >DocumentRoot /clients/www/home.nextra.sk
-> >Options FollowSymLinks
-> ></VirtualHost> 
-> >
-> >the IP is ok ... this seems a bug, right?
-> 
-> Wrong. How is apache supposed to know you want to do name-based VHing if
-> you don't tell it?
-> 
-> 	NameVirtualHost ip
-> 
-> and as Jeff says, use the ip in the VH..

Sorry, forgot to mention - i do have "NameVirtualHost home.nextra.sk" in
config file. I have over 1000 virtualhosts that do work. And I have a few
reasons not to put IP into NameVirtualHost and <VirtualHost> - the file is
dynamically generated, the same file should work on more machines etc.

This it the only thing that does not work. I understand it as in some cases
the parameter of <VirtualHost> does mean more than only defining address
that virtualhost will be working, but also does that affect ServerName. I
consider that as a bug - am I right?

The main reason why I want to do this, is that I want to have virtualhost
"default.nextra.sk" that will catch all hosts that are not defined in
<VirtualHost> section - every undefined Host: should go to default. But the
hostname is home.nextra.sk and that one should have its own virtualhost.

-- 
 Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 BSE = Mad Cow Desease ... BSA = Mad Software Producents Desease

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

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


Mime
View raw message