This is a discussion on how to make apache use errordocument after CGI returns status code? within the Linux Web Servers forums, part of the Web Server and Related Forums category; hello, i am using apache 2. my cgi script is set up to handle all requests (if there is no ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hello,
i am using apache 2. my cgi script is set up to handle all requests (if there is no file): RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^.*$ dispatch.cgi [QSA,L] how to make apache serve the corresponding error document when the script returns non-200 status code? tried this with no success ErrorDocument 404 /error/HTTP_NOT_FOUND.html cgi seems to generate the status header correctly, no problem there. i am new. please help! thanks konstantin |