httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pritpal Dhaliwal" <>
Subject RE: Virtual Domains
Date Thu, 22 Aug 2002 16:57:55 GMT
or the 

ServerName _default_ 
will pick up all the un-resolved ones

Pritpal Dhaliwal

-----Original Message-----
From: Matus "fantomas" Uhlar []
Sent: Thursday, August 22, 2002 9:18 AM
Subject: Re: Virtual Domains

-> Whenever people try to access domains without the "www." at the
-> beginning, they get thrown to the first virtualdomain listed instead of
-> their website.  The only solution I have thought up so far was to add a
-> virtualdomain listing for every website.  But if you tried to access any
-> of their other domain names, it would do the same.  Is there any way to
-> default to a certain page in by looking at the domain?

That's behaviour of apache - first defined virtual host will access all
unknown hosts on given ip/port pair.

You can use ServerAlias directive for all such servers.

 Matus "fantomas" Uhlar, ;
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 Support bacteria - they're the only culture some people have. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message