www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Rating <rating.mar...@ems.guj.de>
Subject general/4679: Additional environment variable for ErrorDocuments
Date Thu, 01 Jul 1999 11:46:04 GMT

>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
>Originator:     rating.marcus@ems.guj.de
>Release:        1.3.6
SunOS 5.6
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.

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);
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> 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!     ]

View raw message