Author image Ken Williams
and 2 contributors


Apache::FakeSSI - Implement Server Side Includes in Pure-Perl


In httpd.conf:

    <Files *.phtml>  # or whatever
    SetHandler perl-script
    PerlHandler Apache::FakeSSI

You must compile mod_perl with PERL_METHOD_HANDLERS=1 (or EVERYTHING=1) to use Apache::FakeSSI.


Apache::FakeSSI is a subclass of Apache::SSI. The difference between the two is that Apache::SSI uses full-blown Apache subrequests to implement server-side includes, whereas Apache::FakeSSI uses pure-perl. This allows the output of Apache::FakeSSI to pass through the regular Perl STDOUT, which means it may be filtered using modules like Apache::Filter.

Please see the Apache::SSI docs for a complete explanation of its functionality, or the Apache::Filter docs for more information on filtering the output of one module through another.


mod_include, mod_perl(3), Apache(3), Apache::SSI(3), Apache::Filter(3)


Ken Williams


Copyright (c) 2002 Ken Williams. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.