httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forrest Aldrich <>
Subject Re: [users@httpd] VirtualHost _default_:* not working?
Date Tue, 03 Jun 2003 21:09:48 GMT
Follow-up to my own posting.  I noted that I can go to:

and get the default page that points to my own site (as mentioned)


and get the proper 404 page specified for 

So I guess I'm not understanding how to catch that invalid (no longer 
hosted) URL.   I want to avoid having to keep stale VirtualHost entries 
just to satisfy the requirement if possible.


At 04:57 PM 6/3/2003, you 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:
><VirtualHost _default_:*>
>     DocumentRoot /usr/local/apache/htdocs/default
>But, the default page that comes up is the page for the primary system 
>root page /usr/local/apache/htdocs, not what I specified above.
>Does this directive have to be after the rest of the VirtualHost 
>directives, or am I doing this incorrectly?
>All of the VirtualHost entries I have are via NameVirtualHost, ie: they 
>have the same IP, but different ServerName entries.
>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:

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