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 2005-07-15 18:19:10 +00:00
parent 62960767c2
commit 5f8945246c
2 changed files with 26 additions and 0 deletions

View File

@ -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
=======

View File

@ -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" )