diff --git a/doc/compile.rb b/doc/compile.rb index 398b0f8..680e269 100755 --- a/doc/compile.rb +++ b/doc/compile.rb @@ -6,6 +6,11 @@ require 'nokogiri' require 'bluecloth' require 'redcloth' +# find all options, actions, setups in the c modules - can be used to check list for completeness (although it doesn't scan the lua modules): +# awk '/static const liPluginOption/, /;/ {print; }' src/*/*.c | grep '"' | cut -d'"' -f2 | perl -e 'print sort <>;' +# awk '/static const liPluginAction/, /;/ {print; }' src/*/*.c | grep '"' | cut -d'"' -f2 | perl -e 'print sort <>;' +# awk '/static const liPluginSetup/, /;/ {print; }' src/*/*.c | grep '"' | cut -d'"' -f2 | perl -e 'print sort <>;' + HTML_TEMPLATE=''' diff --git a/doc/mod_cache_disk_etag.xml b/doc/mod_cache_disk_etag.xml index 29749f9..3be33fe 100644 --- a/doc/mod_cache_disk_etag.xml +++ b/doc/mod_cache_disk_etag.xml @@ -8,12 +8,13 @@ *Hint:* Use a cron-job like the following to remove old cached data, e.g. in crontab daily: +
-			 find /var/cache/lighttpd/cache_etag/ -type f -mtime +2 -exec rm -r {} \;
+			find /var/cache/lighttpd/cache_etag/ -type f -mtime +2 -exec rm -r {} \;
 			
*Hint:* - Have a look at mod_deflate to see this module in action. + Have a look at "mod_deflate":mod_deflate.html#mod_deflate to see this module in action. diff --git a/doc/mod_deflate.xml b/doc/mod_deflate.xml index 3bf4887..8fbb80f 100644 --- a/doc/mod_deflate.xml +++ b/doc/mod_deflate.xml @@ -39,7 +39,7 @@
- *Important*: As deflate; waits for the response headers, you must handle the request before it (see below how to check whether the request is handled). + *Important*: As @deflate;@ waits for the response headers, you must handle the request before it (see below how to check whether the request is handled). If the request is not handled, you will get a "500 - Internal error" and a message in the error.log. Does not compress: diff --git a/doc/mod_fastcgi.xml b/doc/mod_fastcgi.xml index 9290425..42ccab7 100644 --- a/doc/mod_fastcgi.xml +++ b/doc/mod_fastcgi.xml @@ -34,4 +34,9 @@ + + diff --git a/doc/mod_memcached.xml b/doc/mod_memcached.xml index 764b6af..065ba97 100644 --- a/doc/mod_memcached.xml +++ b/doc/mod_memcached.xml @@ -3,7 +3,7 @@ caches content on memcached servers - + + ]]> @@ -41,7 +41,7 @@ - searches the content in a memcached database + stores the generated respone in a memcached database @@ -67,7 +67,7 @@ - + "%{req.scheme}://%{req.host}%{req.path}"]; }); - + ]]> -
- - Exports a lua api to per-worker luaStates too (for use in lua.handler): +
+ + ]]>
diff --git a/doc/mod_progress.xml b/doc/mod_progress.xml index 45b988d..8f32bf4 100644 --- a/doc/mod_progress.xml +++ b/doc/mod_progress.xml @@ -3,7 +3,7 @@ track connection progress (state) via a unique identifier - + + ]]> @@ -29,12 +29,12 @@ ("POST") - + + ]]> @@ -48,7 +48,7 @@ (optional) output format, one of "legacy", "json" or "jsonp". Defaults to "json". - + + ]]> - + + ]]> diff --git a/doc/mod_rewrite.xml b/doc/mod_rewrite.xml index 0c0ac9d..71c772e 100644 --- a/doc/mod_rewrite.xml +++ b/doc/mod_rewrite.xml @@ -75,6 +75,18 @@ + + modify request path and querystring, matching raw path + + a simple target string or one rule, mapping a regular expression to a target string, or a list of rules. + + + + Similar to "@rewrite@":mod_rewrite.html#mod_rewrite__action_rewrite, but matches the raw path (i.e. the path before URL decoding and sanitizing). + + + +
- - The @prefix@ is not used to build the filename; include it manually in the @document-root@ (works like @"alias":plugin_core.html#plugin_core__action_alias "/prefix" => "/docroot"). + "/docroot"@, see "@alias@":plugin_core.html#plugin_core__action_alias). secdownload doesn't actually handle the (valid) request, it just provides the mapping to a filename (and rejects invalid requests). - + ]]> - + "/sec/", "document-root" => "/secret/path", "secret" => "abc", "timeout" => 600 ]; - + ]]>
diff --git a/doc/mod_userdir.xml b/doc/mod_userdir.xml index 37747fb..ec504f2 100644 --- a/doc/mod_userdir.xml +++ b/doc/mod_userdir.xml @@ -3,10 +3,10 @@ allows you to have user-specific document roots being accessed through http://domain/~user/ - + + ]]> @@ -20,8 +20,8 @@ Otherwise the @path@ specifies the absolute docroot to be used. Placeholders are: - * @*@ replaced by the complete username - * $1-9 replaced by the n-th letter of the username, e.g. $2 is the second letter + * @*@ is replaced by the complete username + * @$1@-@$9@ are replaced by the n-th letter of the username, e.g. @$2@ is the second letter Examples: @@ -38,13 +38,13 @@ ]]>
- + + ]]> diff --git a/src/modules/mod_rewrite.c b/src/modules/mod_rewrite.c index 18c034f..70ca71b 100644 --- a/src/modules/mod_rewrite.c +++ b/src/modules/mod_rewrite.c @@ -1,10 +1,6 @@ /* * mod_rewrite - modify request path and querystring with support for regular expressions * - * Todo: - * - implement rewrite_optimized which reorders rules according to hitcount - * - implement rewrite_raw which uses the raw uri - * * Authors: * Copyright (c) 2009 Thomas Porzelt * Copyright (c) 2010 Stefan B├╝hler