perry.tew at cibavision.novartis.com
perry.tew at cibavision.novartis.com
Tue Oct 14 21:14:23 EST 2003
Apache passes environment variables to an ErrorDocument that should provide all the information you need for a custom response: here are some links: http://httpd.apache.org/docs-2.0/mod/core.html#errordocument *** see this **** http://httpd.apache.org/docs-2.0/custom-error.html so, the mod_python code would look like this: req.add_common_vars() env_vars = req.subprocess_env orig_req_uri = env_vars['REDIRECT_URL'] Hope this helps, Perry Tew I want to have mod_python manage my ErrorDocument handler. How can I get the URI of the request that caused the error? I'm using mod_python-3.0.3 and Apache 2.0.47. The uri members in mprequest get me the URI of the ErrorDocument handler. -- albert chin (china at thewrittenword.com) _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python
|