Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 24895 invoked from network); 9 Dec 2003 18:55:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Dec 2003 18:55:49 -0000 Received: (qmail 76591 invoked by uid 500); 9 Dec 2003 18:55:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76580 invoked by uid 500); 9 Dec 2003 18:55: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 76553 invoked from network); 9 Dec 2003 18:55:26 -0000 Received: from unknown (HELO cpmail.egrad.com) (141.154.210.94) by daedalus.apache.org with SMTP; 9 Dec 2003 18:55:26 -0000 Received: from coyote ([141.154.210.66]) by cpmail.egrad.com (Merak 6.0.7) with SMTP id MWA37514; Tue, 09 Dec 2003 13:54:26 -0500 From: "Jon Block" To: Cc: Date: Tue, 9 Dec 2003 13:55:30 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Please help me with this error document directive X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Joshua, Thank you so much for your help. I think you can probably help me solve this... Let me try to be more clear and lets see if you can figure it out for me... For the following example, lets assume that all of the folders up to http://www.bbtp.com/news/2003/02/06/ exist but the "06" folder is empty. Here are some URL's that should *not* hit my ErrorDocument directive.... http://www.bbtp.com/news/2003/02/06/ArtsAndEntertainment http://www.bbtp.com/news/2003/02/06/ding/ http://www.bbtp.com/news/2003/02/06/yay/iofdios.html http://www.bbtp.com/news/2003/02/06/michaeljackson/iofdios/ifodisfds http://www.bbtp.com/news/2003/02/06/beatit/iofdios/ifodisfds/iofdiosfds.shtm l http://www.bbtp.com/news/2003/02/06/punked/iofdios/ifodisfds/iofdiosfds.jpg Here are the url's that *should* hit my error handler http://www.bbtp.com/news/2003/02/06/yay/iofdios.shtml http://www.bbtp.com/news/2003/02/06/bling/doggy.shtml http://www.bbtp.com/news/2003/02/06/mickey/mouse.house.yay.for.me.shtml http://www.bbtp.com/news/2003/02/06/mickey/objects-in-the-mirror-are-closer- than-they-appear.shtml Let me know what you think Joshua! Thanks again... -Jon -----Original Message----- From: Joshua Slive [mailto:joshua@slive.ca] Sent: Monday, December 08, 2003 12:31 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Please help me with this error document directive On Mon, 8 Dec 2003, Jon Block wrote: > Here is an example of an HTTP GET request I'm making on my Apache server... > > http://www.bbtp.com/news/2003/02/06/ArtsAndEntertainment/What.I.want.for.my. > birthday.shtml > I am trying to figure out how to tell Apache "If you get a request like > this, serve out "/bling.cfm" instead. However, I only want to serve out > "/bling.cfm" if the "ArtsAndEntertainment" folder is missing. > > ErrorDocument 404 /bling.cfm > > > However, this doesn't work... i get a 404 error when i try my request. > Please help! Ummm... Aren't you TRYING to get a 404 error? I guess you are saying you are getting the INTERNAL 404 error rather than your page. A couple issues here: 1. matches only filenames, not complete paths. 2. It is not very clear exactly what you are trying to accomplish. It could be clearer if you supplied a few example URLs that you want to hit your error handler and a few that you don't. 3. Given that, here are a few guesses at what you want: This should have very close to the affect that your was trying to get: ErrorDocument 404 /bling.cfm Another technique might be ErrorDocument 404 /blink.cfm which tries to catch any missing file in the fourth level directory under news. If that isn't what you want, you need to be clearer in your problem description. 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 --------------------------------------------------------------------- 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