Name

XSSI

Synopsis

This is an extension of the standard SSI commands available in the XSSI module, which became a standard part of the Apache distribution in Version 1.2. XSSI adds the following abilities to the standard SSI:

  • XSSI allows variables in any SSI commands. For example, the last modification time of the current document could be obtained with the following:

    <tt><!--#flastmod file="$DOCUMENT_NAME" -->
  • The set command sets variables within the SSI.

  • The SSI commands if, else, elif, and endif are used to include parts of the file based on conditional tests. For example, the $HTTP_USER_AGENT variable could be tested to see the type of browser and produce different HTML output depending on the browser capabilities.

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.