You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.5 KiB
Plaintext
77 lines
1.5 KiB
Plaintext
19 years ago
|
====================
|
||
|
Server-Side Includes
|
||
|
====================
|
||
|
|
||
|
---------------
|
||
|
Module: mod_ssi
|
||
|
---------------
|
||
|
|
||
|
:Author: Jan Kneschke
|
||
|
:Date: $Date: 2004/08/29 09:44:53 $
|
||
|
:Revision: $Revision: 1.2 $
|
||
|
|
||
|
:abstract:
|
||
|
The module for server-side includes provides a compat layer for
|
||
|
NSCA/Apache SSI.
|
||
|
|
||
|
.. meta::
|
||
|
:keywords: lighttpd, ssi, Server-Side Includes
|
||
|
|
||
|
.. contents:: Table of Contents
|
||
|
|
||
|
Description
|
||
|
===========
|
||
|
|
||
|
Configuration
|
||
|
-------------
|
||
|
|
||
|
::
|
||
|
|
||
|
server.modules = ( ..., "mod_ssi", ... )
|
||
|
ssi.extension = ( ".shtml" )
|
||
|
|
||
|
Supported Options
|
||
|
-----------------
|
||
|
|
||
|
- ``<!--#echo var="..." -->``
|
||
|
- ``<!--#include (file="..."\|virtual="...") -->``
|
||
|
- ``<!--#flastmod (file="..."\|virtual="...") -->``
|
||
|
- ``<!--#fsize (file="..."\|virtual="...") -->``
|
||
|
- ``<!--#config timefmt="..." sizefmt="(bytes|abbrev)" -->``
|
||
|
- ``<!--#printenv -->``
|
||
|
- ``<!--#set var="..." value="..." -->``
|
||
|
- ``<!--#if expr="..." -->``
|
||
|
- ``<!--#elif expr="..." -->``
|
||
|
- ``<!--#else -->``
|
||
|
- ``<!--#endif -->``
|
||
|
|
||
|
Expression Handling
|
||
|
-------------------
|
||
|
|
||
|
Every ''expr'' is interpreted:
|
||
|
|
||
|
- logical: AND, OR, !
|
||
|
- compare: =, <, <=, >, =>, !=
|
||
|
- precedence: (, )
|
||
|
- quoted strings: 'string with a dollar: $FOO'
|
||
|
- variable substitution: $REMOTE_ADDR
|
||
|
- unquoted strings: string
|
||
|
|
||
|
Flow Control
|
||
|
------------
|
||
|
|
||
|
if, elif, else and endif can be used the insert content only under special
|
||
|
conditions.
|
||
|
|
||
|
Unsupported Features
|
||
|
--------------------
|
||
|
|
||
|
The original SSI module from NCSA and Apache provided some more options
|
||
|
which are not supported by this module for various reasons:
|
||
|
|
||
|
- exec
|
||
|
- nested virtual
|
||
|
- config.errmsg
|
||
|
- echo.encoding
|
||
|
|