I have configued mod_fcgid properly as follows:

AddHandler fcgid-script .fcgi

<FilesMatch "\.fcgi$"> # This is not required for /cgi-bin though
 Options +ExecCGI
</FilesMatch>

I have a error404.fcgi bash script in /cgi-bin owned by apache user and group with executable permissions, but this simply doesn't work. Apache says this:

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

But ErrorLog debug reveals that, CACHE filters are being added & removed to /cgi-bin/error404.fcgi

The content of error404.fcgi is this:

#!/bin/bash

echo Content-Type: text/plain
echo
echo "FOO"

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
Cheap and Reliable VPS Hosting: http://j.mp/arHk5e

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
  "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to