[mod_ssi] basic recursive SSI include virtual (fixes #536)
commit185e262bf508b84aa5806bb12110fcc3d8a99c4a
authorGlenn Strauss <gstrauss@gluelogic.com>
Sun, 11 Dec 2016 06:49:11 +0000 (11 01:49 -0500)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sun, 11 Dec 2016 07:40:58 +0000 (11 02:40 -0500)
treeceec51f32b97e83080d8326212a2c5abe20fab3c
parent879ce0b534fc62fac9e5585f49570d5fac3c7e2c
[mod_ssi] basic recursive SSI include virtual (fixes #536)

EXPERIMENTAL: basic recursive SSI <!--#include virtual="..." -->
Marked experimental since behavior may change in future.

Prior behavior was simpler and treated them all as files included as-is.

New behavior treats all #include virtual="..." targets as SSI files.

In the future, this may change to be a full recursive subrequest and the
virtual path may be treated as a new subrequest and might be something
other than SSI (e.g. might be CGI).  This has not been implemented.

Current behavior processes <!--#include virtual="..." --> as static file
Enable new behavior by setting ssi.recursion-max to value other than 0.
ssi.recursion-max = X to set maximum recusion depth

x-ref:
  "add recursion to the SSI #include directive"
  https://redmine.lighttpd.net/issues/536
src/mod_ssi.c
src/mod_ssi.h