mod_ssi works, but does not allow any #include

Bug #714832 reported by Cian Davis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lighttpd (Ubuntu)
Invalid
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

Revision history for this message
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.

Revision history for this message
gstrauss (gstrauss) wrote :

If you are still interested in this issue, please file a feature request upstream at
https://redmine.lighttpd.net/projects/lighttpd/issues

This is a feature request not present in upstream lighttpd, and is not a packaging issue in Ubuntu, so I am closing this issue here.

Changed in lighttpd (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.