Mauro, Last I heard Apache::SSI does not run on mod_perl 2.x? I did some checking and the latest version appears to be 3/Dec/2000, way to early to have been ported to mod_perl 2.x. Have you tried Apache::SSI in your current environment using .shtml files without Apache::PAR?
Assuming this isn't the issue, or this is with mod_perl 1.x, another guess is that Apache::SSI may be failing to find the files to be included from within the archive. Do you see this problem if you use Apache::SSI, but don't include any SSI tags in the .shtml files themselves? If this is the case, you may be able to resolve this using ##UNPACKDIR## instead of ##PARFILE## within the web.conf. Once the static directory has been referenced with ##UNPACKDIR##, you should be able to use Apache::SSI without the reliance on Apache::PAR::Static, which may solve the issue for you. In this case, the web.conf may look something like the following (untested): Alias /myapp/static/ ##UNPACKDIR##/ <Location /myapp/static> Set-Handler perl-script PerlHandler Apache::SSI </Location> If you are not using any Apache::SSI specific SSI features, you may also want to consider just using mod_include under mod_perl 2.x from your web.conf: Alias /myapp/static/ ##UNPACKDIR##/ <Directory ##UNPACKDIR##> SetOutputFilter INCLUDES Order allow,deny Allow from all </Directory> Thank you, Nathan Byrd On Tue, 2004-04-27 at 08:39, Mauro de Toledo Ribeiro wrote: > Hello Everyone !! > > I´m new to PAR and I trying to use it in a Win32 environment...(Apache 2.0.48 > compiled with mod_include and mod_perl-1.99_10/PAR-0.80/Apache::PAR-0;30) > > Instalation of Apache::PAR works fine to me, but there is something I still fail to > handle with: In my normal (bunch of files) distribution, I also use tons of SSI tags > to segregate business from presentation... But when I put all my shtml files in a > folder handled by Apache::PAR::Static, it couldn´t parse the <!--#include > virtual="..." --> tags. > > So, is there a way to use SSI ***INSIDE*** a PAR files ? I guess if that would be > possible, it will be much like a Java Server Pages, but in Perl. > > I have tryed this, without sucess: > > Alias /myapp/static/ ##PARFILE##/ > <Location /myapp/static> > SetHandler perl-script > PerlSetVar Filter On # From > Apache::Filter, that allow "Handle-Chain" processing... > PerlHandler Apache::SSI Apache::PAR::Static # Request will be send > to SSI handle first, than, to PAR::Static > PerlSetVar PARStaticDirectoryIndex index.shtml > PerlSetVar PARStaticDefaultMIME text/html > PerlSetVar PARStaticCacheType memory > PerlSetVar PARStaticCacheExpires "1 day" > PerlSetVar PARStaticCacheMaxSize 1000 > </Location> > > Handle-Chain works, but Apache::SSI hangs up.. :( > > Any help would be nice !! > Thanks ! > > Mauro Ribeiro > >
