I'm Running Apache 2.2 on the RackSpace CloudSites. I have a Perl CGI script that works fine if called directly via URL. I want to use the script as a custom ErrorDocument, but instead of being parsed and run it displays the text as plain text.
Here is my .htaccess file:
DirectoryIndex index.php index.html index.htm
ErrorDocument 404 /cgi/test.cgi
Any help wold be appreciated!