If you are trying to have the results of a CGI file (that being an HTML stream) re-parsed to handle SSI directives, you cannot do it; the CGI output is sent directly from the script to the outside connection, and no further parsing is done by the web server. Instead, you need to do the parsing during the CGI output generation, typically with a module like CGI::SSI or the like.