Previously in WEBppliance 3.1.x you could place .shtml files in the cgi-bin directory where it would be parsed. However after upgrading to Pro 3.5, this will stop working because in the WEBppliance Pro 3.5 uses Script instead of ScriptAlias in the file /etc/httpd/conf/site#/cgi. You can fix this by copying your .shtml files into the html directory or you can use one of these two options.
Create a .htaccess file in the cgi-bin directory with something like:
AddType text/html .html .shtml
AddHandler server-parsed .shtml
AddHandler cgi-script .pl .sh .sh .cgi
The important part is to put all of the extensions (.pl, .sh, etc) in the AddHandler cgi-script line that you plan to use as CGIs. Otherwise they won't get executed. Now go to the URL and the SSI should work.
Alternatively, you can use the ScriptAlias instead by doing: (replace all instances of site# with the actual site number):
- Login as root to the server
- cd /etc/httpd/conf/site#
- cp cgi cgi-custom
- EditVirtDomain -c cgi,off site#
- Edit cgi-custom and make it look like:
ScriptAlias /cgi-bin/ /home/virtual/site#/fst/var/www/cgi-bin/
SetEnv SITE_CGIROOT /home/virtual/site#/fst/var/www/cgi-bin
Now restart httpd, and go to the URL with the SSI and it should work.