Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 10079 invoked by uid 500); 3 Jun 2003 21:16:27 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 10037 invoked from network); 3 Jun 2003 21:16:27 -0000 Received: from ny2.fastmail.fm (HELO smtp.us2.messagingengine.com) (66.111.4.3) by daedalus.apache.org with SMTP; 3 Jun 2003 21:16:27 -0000 Received: from www.fastmail.fm (server1.internal [10.202.2.132]) by server2.messagingengine.com (Postfix) with ESMTP id 44FF2630AB for ; Tue, 3 Jun 2003 17:16:28 -0400 (EDT) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by messagingengine.com with SMTP; Tue, 03 Jun 2003 17:16:28 -0400 X-Epoch: 1054674988 X-Sasl-enc: wIRWHOScd3HcugRSwYdIFg Received: from usager70-65.hec.ca (usager70-65.hec.ca [132.211.70.65]) by www.fastmail.fm (Postfix) with ESMTP id 9C8C434C6E for ; Tue, 3 Jun 2003 17:16:27 -0400 (EDT) Date: Tue, 3 Jun 2003 17:16:22 -0400 (=?ISO-8859-1?Q?Est_=28heure_d'=E9t=E9=29?=) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <6.0.0.9.2.20030603165432.01f66858@192.168.1.1> Message-ID: References: <6.0.0.9.2.20030603165432.01f66858@192.168.1.1> X-X-Sender: slive@www.fastmail.fm MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] VirtualHost _default_:* not working? On Tue, 3 Jun 2003, Forrest Aldrich wrote: > > I'm trying to set a catch-all page that will be displayed, should something > be pointed to my server (which hosts a few pages) for which it has no > content. For example, there might be a valid dns record that points here, > but the page isn't hosted any longer, thus I want a 404 to come up (and > will add more detail later, once I get this working). > > So, in the Apache Server Unleashed book, it explains the use of the > _default_:* directive. I set this to: > All of the VirtualHost entries I have are via NameVirtualHost, ie: they > have the same IP, but different ServerName entries. The _default_ virtual host catches requests only for hosts that have no matching IP address. If you want a default name-based virtual host (one that catches unrecognized hostnames) then simply create a new block with the same IP as your NameVirtualHost directive, give it a random ServerName, and list it first in your config file. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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