Lighty2Go is the portable version of the Lighttpd server. I'm required to use it for a project I am doing.

I need to use SSI (Server Side Includes). I know SSI is old and slow, that is OK for this project. I know Lighty2Go/Lighttpd has support for SSI, however, I can't seem to get it to work.

My Index Page:

<doctype html>
<html>
    <head>
        <title>Test Site</title>
    </head>
    <body>
        <!--#include file="header.txt"-->
        Test Content
    </body>
</html>

The header.txt file has this inside:

This is header.txt

I've changed some settings in the config to no avail. Any ideas? Does anybody have a step-by-step way to do it for newbies? I'm new to Lighty2Go, I'm only using it so I can test my SSI enabled sites before uploading them to a server.

Thanks!

link|improve this question
feedback

migrated from superuser.com Sep 16 '11 at 5:24

This question came from our site for computer enthusiasts and power users.

1 Answer

up vote 1 down vote accepted

Under the Lighty2Go directory, you'll need to edit the lighttpd config file at LightTPD/conf/lighttpd-l2g.conf.

Under server.modules = (, uncomment the "mod_ssi", line. Also, uncomment the ssi.extension = ( ".shtml" ) line near the bottom of the file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.