From 5f8945246caedc6b1d5dd267b62eb01b42acbcbc Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Fri, 15 Jul 2005 18:19:10 +0000 Subject: [PATCH] added examples git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@458 152afb58-edef-0310-8abb-c4023f1b3aa9 --- doc/cml.txt | 12 ++++++++++++ doc/lighttpd.conf | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/doc/cml.txt b/doc/cml.txt index 4ae38934..45519bd1 100644 --- a/doc/cml.txt +++ b/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 `_ and should install `` +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 ======= diff --git a/doc/lighttpd.conf b/doc/lighttpd.conf index d34c7371..5c41bed5 100644 --- a/doc/lighttpd.conf +++ b/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" )