Enabling Server Side Includes on Lighttpd

Easy as 123

Enabling Server Side Includes is as easy as 123. Backup your Lighttpd conf file before you start.

1.) Edit your lighttpd.conf file and search for the line below and uncomment the line for SSI.

   ## modules to load 
   # "mod_compress", 

2.) Next, search for "ssi.extension" and add the extension for your document type. The default is .shtml, but I use .html since all of my pages use SSI for the navigation menu.

    #### ssi 
   ssi.extension = ( ".html" ) 

3.) Save your Lighttpd.conf file and restart Lighttpd. That's all there is to it.


Back To Articles