I can't seem to get server side includes to work as I need them to. I am performing a <!--#exec cgi="script.cgi"-->. Before the exec command I placed the following SSI directive:
<!--#config cmdecho="ON"-->.

When I call the shtml page, the script runs successfully (no errors in the Apache log). However, the output of the script does not get printed to my html page. When I view the html source I see only the <!--#config..--> directive, but none of the script output was piped to my page.

How can I remedy this problem?

Thanks in advance,
Matt