Subject: | incude(virtual => 'a local URI path') |
DIST => CGI::SSI 0.85
PERL => v5.8.1
OS => Linux 2.4.29
errmsg => [an error occurred while processing this directive]
So I'm calling
$ssi->include(virtual => '/ScriptAliasDir/myCGI.pl?myPARAM=2');
After tracking this through
CGI::SSI::include() --> CGI::SSI::_include_virtual() --> CGI::SSI::_include_file()
I find that since the path is obviously on the localhost it is being treated as a local file.
Okay thats fine except that it then expects to have a fully qualified local system path to the file. Not the URI that would be used to access said file via a web client.
Okay I try this and finally get around the error. However it seems that the file is simply being cat'ed directly in now instead of being processed by the web server as expected.
The only way around this I see so far is to enter the virtual path as 'ScriptAliasDir/...' (removed the leading '/'). This seems to process the SSI as expected.
This is unfortunately very hard to remember and dificult to retrofit into my scripts and also inconsistent with the behavior of PHP's virtual() function. Is there a reason for not processing this as the PHP function does?? Thanks for your help.
--
Shannon