[BlueOnyx:19370] Re: Help with SSI & CGI on 5209R

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Sat Mar 19 09:30:46 -05 2016


Hi Michael,

On 3/18/2016 10:38 PM, Michael Stauber wrote:
> It will only get parsed correctly if it has the extension *.shtml.

Yes, that is true, unless we add this into .htaccess:
AddHandler server-parsed .html

Then you can process the SSI inside a file with .html as well as .shtml.

I have done this, and my test file does process.

> And a minimalistic Perl script named test.cgi with this in it:
>
> ]# cat test.cgi
> #!/usr/bin/perl
> print "\n\nHello World!";
>
> That works. Provided the HTML file has the ending *.shtml and the Perl
> script has the extension *.cgi. The extension *.pl does NOT work.

Well, I am still getting a problem:
[Sat Mar 19 08:22:09.413107 2016] [cgi:error] [pid 8998] [client 
208.77.151.18:63586] Options ExecCGI is off in this directory: 
/home/.sites/28/site1/web/testperl.cgi
[Sat Mar 19 08:22:09.413151 2016] [include:error] [pid 8998] [client 
208.77.151.18:63586] unable to include "testperl.cgi" in parsed file 
/home/.sites/28/site1/web/testperl.shtml, subrequest returned 403

I'm using the same contents as your test.cgi, called from 
testperl.shtml.  (And same results as could be predicted with 
testperl.html).

Could I be missing something stupid?

> So the easy fix for you would be to renamed your *.pl to *.cgi to get it
> to work.

Hmmm.  That is a very unattractive prospect.   We have a site with 
perhaps hundreds of .html pages making calls to at least 2 (sometimes as 
many as a dozen) of these .pl scripts.   Changing all of them will not 
be a fun project.

This is strange that it would work perfectly under 5106R and Apache 2.2 
but not under 5209R / Apache 2.4...

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list