• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Parse CGI output for SSI (SetOutputFilter)

M

moltar

Guest
I am having crazy trouble and ripping hair out...

On my local dev machine, I use a simple statment in httpd.conf and Apache parses all CGI output for SSI.

Code:
<Directory "/home/*/cgi-bin">
SetOutputFilter INCLUDES 
</Directory>

I am trying to do this with Apache on Plesk, and it just doesn't work. It doesn't parse it - just outputs the SSI statements as they are.

I've tried putting it into httpd.conf, vhost.conf, .htaccess... No go!

Anyone had a similar problem?
 
Holy $%^& I am such a dumbass. I've spent 4h trying to figure this out and, of course, as soon as I posted a question I finally figured it out!

The reason it didn't work is because I didn't have Option Includes enabled on cgi-bin directory!

So the following code works perfectly!

Code:
Options Indexes FollowSymLinks Includes
AddOutputFilter INCLUDES .pl
 
Back
Top