Apache::SSIChain Out of Order

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am trying to use the Apache::SSIChain module, but the results
aren't coming out right. Things are coming out out of order.

Here's the explanation for the issue I'm encountering with some very
simple scripts and SHTML in place:

These two pages are simple chunks to be included. They could be just
regular HTML actually, as they don't include anything themselves and
only contain the text in question:

This SHTML page includes both of them:

It's source is:
<!--#include virtual="/include1.shtml" -->
<!--#include virtual="/include2.shtml" -->

This mod_perl script (I use .mp as my mod_perl Apache::Registry CGI
extension so that I can have non-mod-perl scripts run as .cgi) is
supposed to output the same thing:

The source for it is very simple. It is:


use strict;
use CGI;
my $cgi = new CGI;
print $cgi->header;

print <<"EOF";
<!--#include virtual="/include1.shtml" -->
<!--#include virtual="/include2.shtml" -->

I don't think I am doing anything wrong, and was wondering if anyone had
seen this issue before and knew a workaround for it. I'd like to
include SHTML output with my scripts, but if it can't come in the
right order I can't do this.

Additionally, if I try to include an SHTML page that calls another
mod_perl CGI, the SHTML page never finishes loading and crashes the
child process.

Re: Apache::SSIChain Out of Order

I should include my relevant server config parts too:

PerlModule Apache::DBI Apache::Constants Apache::Cookie Local::SQL
Local::Session Apache::SSI Apache::SSIChain Apache::OutputChain

    AddHandler perl-script .mp
    PerlHandler Apache::OutputChain Apache::SSIChain Apache::Registry

PerlChildInitHandler Local::SQL

<Directory "/usr/local/www">
    Options Indexes FollowSymLinks MultiViews Includes ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    PerlSendHeader on
    <Files ~ "\.(mp|php|shtml)">
        PerlFixupHandler Local::Session

Site Timeline