Browse Source

added examples

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@458 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.3.15 lighttpd-1.3.15
Jan Kneschke 17 years ago
parent
commit
5f8945246c
  1. 12
      doc/cml.txt
  2. 14
      doc/lighttpd.conf

12
doc/cml.txt

@ -156,6 +156,18 @@ The index.cml for this looks like: ::
Now we get about 10000 req/s instead of 600 req/s.
Installation
============
You need `lua <http://www.lua.org/>`_ and should install `<libmemcache-1.3.x http://people.freebsd.org/~seanc/libmemcache/>`
and have to configure lighttpd with: ::
./configure ... --with-lua --with-memcache
To use the plugin you have to load it: ::
server.modules = ( ..., "mod_cml", ... )
Options
=======

14
doc/lighttpd.conf

@ -16,6 +16,8 @@ server.modules = (
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
@ -265,3 +267,15 @@ url.access-deny = ( "~", ".inc" )
#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )
## for mod_trigger_b4_dl
# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10
## for mod_cml
## don't forget to add index.cml to server.indexfiles
# cml.extension = ".cml"
# cml.memcache-hosts = ( "127.0.0.1:11211" )

Loading…
Cancel
Save