in reply to How do I get cgi scripts parsed for ssi by way of the .htaccess file?

i'm just gonna go over everything again and hope someone can help me...my site structure is like this:
html (the root directory) | |--index.htm | |--cgi-bin | |--serve.cgi | |--ads | |--ads.cgi
now, in both index.htm and serve.cgi, is the ssi tag: <!--#exec cgi="/cgi-bin/ads/ads.cgi" --> in index.htm, the ssi tag works fine, but in serve.cgi, all i get is [an error occurred while processing this directive]. i tried changing the path in the ssi tag to "/ads/ads.cgi" in the script, but that didnt work.

I'm on a freebsd 4.2 server with perl v5.005_03 for i386-freebsd. i tried Option +Includes and #exec cmd too, and that just gave me a bunch of 500 errors.

i even tried moving index.htm to a subdirectory of /html, and serve,cgi to the same subdirectory, and the tag still worked in index.htm, and it still DIDNT work in serve.cgi. i'm all out of ideas, any help would be greatly appreciated.

______________________________________________
When I get a little money, I buy books. If I have any left over, I buy food and clothes.
-Erasmus