cee oh em gee tee - "commgitt"

Server Side Includes (SSI)
and Server Parsed HTML (SPML) mod_include handles Server Side Includes (SSI), eXtended Server Side Includes (XSSI)

Server parsed HTML documents are parsed and processed by the server before they are sent to the client.

Quick Notes


A few examples... (see mod_include for more)

<!--#include virtual="urlpath" -->
relative and absolute paths are allowed dd
<!--#include file="filename" -->

Usage discouraged! "../" or "/..." is not allowed, only files in current and directories beliw ar Ok

<!--#exec cgi="/cgi-bin/datetime.tcl" -->
execute a command
<!--#echo var="DATE_LOCAL" --> 
show current date

Apache Configuration Notes

Uncomment / add:

AddType     text/html      .shtml
AddHandler  server-parsed  .shtml

Plus for each Options:

Options ... Includes
# or
Options ... IncludesNOEXEC   # (disables exec and include)

MIME Type Notes

Only documents with MIME types


are processed. Resulting HTML is given MIME type: