Return-Path: owner-new-httpd Received: by taz.hyperreal.com (8.6.12/8.6.5) id NAA15249; Mon, 7 Aug 1995 13:24:28 -0700 Received: from epprod.elsevier.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id NAA15213; Mon, 7 Aug 1995 13:24:18 -0700 Received: from snowdon.elsevier.co.uk (snowdon.elsevier.co.uk [193.131.197.164]) by epprod.elsevier.co.uk (8.6.12/8.6.12) with ESMTP id VAA16014 for ; Mon, 7 Aug 1995 21:22:10 +0100 Received: from www.elsevier.co.uk (actually host www) by snowdon with SMTP (PP); Mon, 7 Aug 1995 21:20:48 +0100 Received: by www.elsevier.co.uk (4.1/SMI-4.1) id AA05598; Mon, 7 Aug 95 21:19:57 BST Date: Mon, 7 Aug 95 21:19:57 BST From: Andrew Wilson Message-Id: <9508072019.AA05598@www.elsevier.co.uk> To: new-httpd@hyperreal.com Subject: ErrorDocument control from .htaccess files... Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Hi, 08.8's http_core.c sez: /* Note --- change the mask below, and ErrorDocument will work from * .htaccess files. The question is, what AllowOverride should webmasters * have to turn it off? */ so I turned: { "ErrorDocument", set_error_document, NULL, RSRC_CONF, RAW_ARGS, NULL }, into { "ErrorDocument", set_error_document, NULL, OR_ALL, RAW_ARGS, NULL }, ^ ^ put ErrorDocument 404 http://somewhere/over/the/rainbow/ in /foo/bar/.htaccess, and fired up the URL: http://there/foo/bar/duntexist.html The result being that I get a redirect to http://somewhere/over/the/rainbow/ whenever I look in /foo/bar for a file that doesn't exist. This is useful especially if you want to avoid having one huge script to handle error redirection. The latter isn't really feasible when you're maintaining a site with lots of different applications (and managers, and programmers) who're all queueing up to add their own 3-line-hack to the system's handle_error.pl script. 1) All this is to be expected, but am I going over the top by choosing OR_ALL? Could I make do with a more restrictive OR_? (there isn't one specific enough) 2) Uuuh, and yeah, could we end up getting a specific directive to enable/disable this behaviour in the future, like, forinstance: AllowOverride Errors Consider this a +1 request for 0.8.8-and-a-bit ;) Cheers, Ay. Andrew Wilson URL: http://www.cm.cf.ac.uk/User/Andrew.Wilson/ Elsevier Science, Oxford Office: +44 01865 843155 Mobile: +44 0589 616144