Apache patch E25 additional info (custom error responses and redirects)

First appears in Apache 0.5

Date:
April 4th 1995

Documentation:
Technical Info

Purpose
Apache's behaviour to redirected URLs has been modified so that additional environment variables are available to a script/server-include.

Old behaviour
Standard CGI vars were made available to a script which has been redirected to. No indication of where the redirection came from was provided.

New behaviour
A new batch of environment variables will be initialized for use by a script which has been redirected to.
Each new variable will have the prefix REDIRECT_.
REDIRECT_ environment variables are created from the CGI environment variables which existed prior to the redirect, they are renamed with a REDIRECT_ prefix, i.e. HTTP_USER_AGENT -> REDIRECT_HTTP_USER_AGENT.
In addition to these new variables, Apache will define REDIRECT_URL and REDIRECT_STATUS to help the script trace its origin.

Logging: Both the original URL and the URL being redirected to, will now be logged correctly in the access log.

See Also
custom error responses.


Home Index