Make sure all of your SSI (.shtml) files use relative path paths. The supported SSI for including other files or the output of CGI applications is:
<!--#include virtual="../relative/path/app.cgi" -->
The "#exec cmd" and "#include file" directives are deprecated and are not guaranteed to work at all on our system.