ssi.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ====================
  2. Server-Side Includes
  3. ====================
  4. ---------------
  5. Module: mod_ssi
  6. ---------------
  7. :Author: Jan Kneschke
  8. :Date: $Date: 2004/08/29 09:44:53 $
  9. :Revision: $Revision: 1.2 $
  10. :abstract:
  11. The module for server-side includes provides a compatibility
  12. layer for NSCA/Apache SSI.
  13. .. meta::
  14. :keywords: lighttpd, ssi, Server-Side Includes
  15. .. contents:: Table of Contents
  16. Description
  17. ===========
  18. Configuration
  19. -------------
  20. ::
  21. server.modules = ( ..., "mod_ssi", ... )
  22. ssi.extension = ( ".shtml" )
  23. Supported Options
  24. -----------------
  25. - ``<!--#echo var="..." -->``
  26. - ``<!--#include (file="..."\|virtual="...") -->``
  27. - ``<!--#flastmod (file="..."\|virtual="...") -->``
  28. - ``<!--#fsize (file="..."\|virtual="...") -->``
  29. - ``<!--#config timefmt="..." sizefmt="(bytes|abbrev)" -->``
  30. - ``<!--#printenv -->``
  31. - ``<!--#set var="..." value="..." -->``
  32. - ``<!--#if expr="..." -->``
  33. - ``<!--#elif expr="..." -->``
  34. - ``<!--#else -->``
  35. - ``<!--#endif -->``
  36. Expression Handling
  37. -------------------
  38. Every ''expr'' is interpreted:
  39. - logical: AND, OR, !
  40. - compare: =, <, <=, >, =>, !=
  41. - precedence: (, )
  42. - quoted strings: 'string with a dollar: $FOO'
  43. - variable substitution: $REMOTE_ADDR
  44. - unquoted strings: string
  45. Flow Control
  46. ------------
  47. if, elif, else and endif can only be used to insert content under special
  48. conditions.
  49. Unsupported Features
  50. --------------------
  51. The original SSI module from NCSA and Apache provided some more options
  52. which are not supported by this module for various reasons:
  53. - exec
  54. - nested virtual
  55. - config.errmsg
  56. - echo.encoding