>Number: 4679 >Category: general >Synopsis: Additional environment variable for ErrorDocuments >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Thu Jul 1 04:50:00 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.6 >Environment: SunOS 5.6 >Description: Current set of REDIRECT_* variables dont provide a way for advanced ErrorDocument scripts to reliably locate the local filename of the originally requested and possibly load it from a central document database.
A patch to add a REDIRECT_FILENAME variable is attached below. >How-To-Repeat: >Fix: Patch file: *** util_script-old.c Thu Jul 1 13:37:56 1999 --- util_script.c Thu Jul 1 13:26:04 1999 *************** *** 299,304 **** --- 299,307 ---- if (r->prev->uri) { ap_table_addn(e, "REDIRECT_URL", r->prev->uri); } + if (r->prev->filename) { + ap_table_addn(e, "REDIRECT_FILENAME", r->prev->filename); + } } ap_overlap_tables(r->subprocess_env, e, AP_OVERLAP_TABLES_SET); >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> 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! ]