tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39221] - httpd / mod_jk / tomcat ErrorDocument 404 /servlet/xxx does not pass the missing document to tomcat
Date Sat, 05 Jan 2008 18:18:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39221>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39221


rainer.jung@kippdata.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |




------- Additional Comments From rainer.jung@kippdata.de  2008-01-05 10:18 -------
This functionality already exists. Apache 1.3/2.0/2.2 automatically set this
information as internal environment variables when an ErrorDocument gets called.
All httpd environment variables can be forwarded to the backend with JkEnvVar.

For the variables see

http://httpd.apache.org/docs/2.2/custom-error.html
http://httpd.apache.org/docs/2.0/custom-error.html
http://httpd.apache.org/docs/1.3/custom-error.html

especially REDIRECT_URL and REDIRECT_QUERY_STRING.

To forward those variables to a backend generated error page use

JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_QUERY_STRING

For JkEnvVar see also 

http://tomcat.apache.org/connectors-doc/reference/apache.html

To retrieve the value on the backend you can use

request.getAttribute("REDIRECT_URL") etc.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message