You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nilesh Govindarajan <li...@itech7.com> on 2010/06/29 16:07:39 UTC

[users@httpd] Unable to use .fcgi as ErrorDocument

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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org