how to make apache use errordocument after CGI returns status code?

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-26-2005
akonsu
 
Posts: n/a
Default how to make apache use errordocument after CGI returns status code?

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0