Received: (qmail 9655 invoked by uid 501); 11 May 2001 22:20:34 -0000 Message-Id: <20010511222034.9654.qmail@apache.org> Date: 11 May 2001 22:20:34 -0000 From: David Sharnoff Reply-To: apache@trust.idiom.com To: submit@bugz.apache.org Subject: ErrorDocument special environment variables don't seem to be available to mod_rewrite X-Send-Pr-Version: 3.110 >Number: 7706 >Category: mod_rewrite >Synopsis: ErrorDocument special environment variables don't seem to be available to mod_rewrite >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri May 11 15:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: apache@trust.idiom.com >Release: 1.3.14 >Organization: apache >Environment: FreeBSD main.bepress.com 4.2-STABLE FreeBSD 4.2-STABLE #3: Sat Jan 27 23:44:48 PST 2001 muir@main.bepress.com:/main/fbsd/src/sys/compile/MAIN i386 >Description: ErrorDocument 404 /cgi/errordoc.cgi RewriteRule /cgi/errordoc.cgi http://dave.bepress.com:1101/cgi/errordoc.cgi/<%{REDIRECT_URL}> [QSA,P] I was hoping to use ErrorDocument for a large portion of my site - static pages served when they're there, use a proxy to pull from another server when things aren't there. Unfortunantly, it appears that mod_rewrite does not have access to the environment variables that ErrorDocument creates for inteligent handling of errors. >How-To-Repeat: Turn on mod_rewrite. Define an error document. Try to use the REDIRECT_* variables in the rewrite rule. >Fix: >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]