mod_ssi works, but does not allow any #include

Bug #714832 reported by Cian Davis on 2011-02-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lighttpd (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: lighttpd

mod_ssi seems to work, but does not allow #includes

Test ssi.shtml
<html>
<head>
    <title>Test Page</title>
</head>
<body>
    <p><b>SSI Test<b></p>
    <!--#echo var="DOCUMENT_ROOT"-->
    <!--#include virtual="temp.txt"-->
</body>
</html>

temp.txt:
SSI includes works!

The resulting HTML source when accessed through lighttpd:

<html>
<head>
    <title>Test Page</title>
</head>
<body>
    <p><b>SSI Test</b></p>
    /var/www/

</body>
</html>

Options tried: setting execute bit on both ssi.shtml and temp.txt. Result: No effect

gstrauss (gstrauss) wrote :

lighttpd 1.4.44 supports recursive processing of #include virtual="..." where the target is an SSI file.

In earlier versions of lighttpd, please use #include file="..." to include the literal file, though note that it will not be parsed by SSI.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers