ssi.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #######################################################################
  2. ##
  3. ## Server Side Includes
  4. ## -----------------------
  5. ##
  6. ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModSSI
  7. ##
  8. server.modules += ( "mod_ssi" )
  9. ##
  10. ## which extensions should be ran through mod_ssi.
  11. ##
  12. ssi.extension = ( ".shtml" )
  13. ##
  14. ## The ssi.conditional-requests directive only affects requests
  15. ## handled by the SSI module and allows to declare which SSI pages
  16. ## are cacheable and which are not. This directive can be enabled
  17. ## or disabled globally and/or in any context.
  18. ##
  19. ## As the name of this directive suggests, conditional requests will
  20. ## be handled appropriately for any SSI page for which the directive
  21. ## is enabled. In particular, the "ETag" and "Last-Modified" headers
  22. ## will both be sent. Conversely, these headers will NOT be sent for
  23. ## pages for which the directive is disabled.
  24. ##
  25. ## The directive should be set to "enable" ONLY for requests that are
  26. ## known to generate cacheable documents. An SSI page which only
  27. ## includes contents from other static files and/or which uses SSI
  28. ## commands that produce predictable output (e.g. the echo command
  29. ## for the LAST_MODIFIED variable) is likely to be cacheable.
  30. ##
  31. ## The directive should be set to "disable" for ALL other documents,
  32. ## that is, for SSI pages which depend on non-predictable input such
  33. ## as (but not limited to) output from ssi exec commands, data from
  34. ## the client's request headers (other than the request URI), or any
  35. ## other non constant input such as the current date or time, the
  36. ## client's user-agent, etc...
  37. ##
  38. ## Disabled by default.
  39. ##
  40. ## For further explanation of conditional requests, please see
  41. ## Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests
  42. ## https://tools.ietf.org/html/rfc7232
  43. ##
  44. #ssi.conditional-requests = "enable"
  45. ##
  46. #######################################################################