apache - No ErrorDocument 500 redirect when using with mod_rewrite -
i'm trying make own errordocument 500 page while using web.py framework.
the problem errordocument directive not working. have builtin error message instead of custom one. , have "additionally, 500 internal server error error encountered while trying use errordocument handle request"
if change
errordocument 500 /cgi-bin/error500.py
to
errordocument 500 "blast! it's 500 error
it works fine.
also if set rewriteengine off
errordocument redirect works correctly.
thank suggestions.
.htaccess:
<files code.py> sethandler wsgi-script options execcgi followsymlinks </files> <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_uri} !^(/.*)+code.py/ rewriterule ^(.*)$ code.py/$1 [pt] </ifmodule> errordocument 500 /cgi-bin/error500.py
Comments
Post a Comment