Server-side Includes

The Sambar Server Server Side include implementation is based on the Apache implementation. Server-side includes allow you to embed commands in an HTML file that are carried out when the document is served to a browser. This functionality is also available using the proprietary Sambar Server tags, which perform considerably than faster, but are non-portable.

Using Server-side includes you can offer dynamically generated data such as the current date or time, include the output of a CGI script in a Web page, or signature files that are appended or prepended to all of your Web pages. All this comes with the cost of additional processing on the server to parse for the SSI directives within the HTML file. For this reason, you must configure the Sambar Server with the file extension that should be processed for Server-side includes; by default, the SSI files must have the extension .shtml. See the Configuration documentation for additional details on configuring or disallowing SSIs.

SSI Overview

SSIs appear in HTML documents within comment tags, beginning with <!-- and end with -->. The following is the basic format:

where #command is the include command to be executed (see below for a list of supported commands). The following illustrates how to display when the current document was last modified:

Supported Commands

The following is a list of commands and their associated tags:

SSI Environment Variables

The following is a list of variables that are made available to parsed documents (most CGI variables, are also made available):

Unsupported SSI Commands

The following SSI commands are not supported by the Sambar Server at this time: