What use is SSI?
Server Side Includes (SSI) is a neat server side method of including the contents of one html or text file into another html page. In a website this can be used to create standard footers and navigation in separate files, this reduces the maintenance required if a site wide change is required.
It works by configuring the webserver to parse through certain pages looking for SSI instructions (generally of the form
<!--#ssiCommand argument="expression" -->) and then carrying out the instructions and replace the instructions with the output generated.
There are a few ways of configuring a webserver to handle Server Side Includes
- Configure the webserver to parse through all files with the extension
- Using .htaccess to allow specific directories and files to be parsed.
- Under Apache, enabling the X-BitHack, which parses all html files with the executable bit set.
If you see the SSI instructions in the View Source in your browser then SSI is probably not enabled, that is the file is not being parsed for includes.