Patches for 1.4.10
- mod_deflate
- mod_extforward
- mod_mysql_vhost + mod_fastcgi
mod_deflate
Here is the mail I got from Robert Jakabosky from alphatrade.com (<bobby at alphatrade.com>)
Hi,
I would like to contribute a module mod_deflate, it is a modified version of
mod_compress. mod_deflate can compress any output from lighttpd static or
dynamic. It doesn't support caching compressed output like mod_compress.
Attached are two patches, one for mod_deflate and the other is some fixes to
mod_proxy.
Module options:
deflate.enabled = "enable"
deflate.compression-level = 9
deflate.mem-level = 9
deflate.window-size = 15
deflate.bzip2 = "enable"
deflate.sync-flush = "enable"
deflate.min-compress-size = 0
#deflate.output-buffer-size = 8192
deflate.work-block-size = 512
deflate.mimetypes = ("text/html", "text/plain")
#deflate.debug = "enable"
The sync-flush option allows dynamic scripts to flush output to the browser
and still use compression.
work-block-size is the number of kilobytes to compress at one time, it allows
the webserver to do other work (network I/O) in between compression.
min-compress-size is the smallest response size that will be compressed.
output-buffer-size is a per connection buffer for compressed output, it can
help decrease the response size(fewer chunks to encode). If it is set to
zero a shared buffer will be used.
mod_extforward
Comman Kang <comman.kang at gmail.com> sent me:
Hello jan.
I've made something rough but similar to mod_extract_forwarded for
Apache. This module will extract the client's "real" ip from
X-Forwarded-For header which is added by squid or other proxies. It might be
useful for servers behind reverse proxy servers.
However, this module is causing segfault with mod_ssl or
$HTTP{''socket"} directive, crashing in config_check_cond while patching
connection , I do not understand architecture of the lighttpd well, does it
need to call patch_connection in either handle_request_done and
connection_reset ?
Note: mod_extforward has been included in lighttpd 1.4.14, see [1665].
Other pending patches from the ticket queue
Attachments
- lighttpd-1.4.10-ada.diff (24.7 kB) -
added the fastcgi + mysqlvhost patch
, added by jan on 02/14/2006 12:18:56 PM. - lighttpd-1.4.9-mod_deflate.diff (55.0 kB) -
dynamic compression
, added by jan on 02/14/2006 12:22:08 PM. - lighttpd-1.4.9-mod_proxy.diff (14.9 kB) -
retry for mod_proxy
, added by jan on 02/14/2006 12:23:15 PM. - lighttpd-1.4.10-mod_extforward.c (8.4 kB) -
extract host from X-forwarded-for
, added by jan on 02/14/2006 12:28:14 PM. - lighttpd-1.4.10-mod_deflate.diff (55.1 kB) -
dynamic compression
, added by jakabosky on 02/16/2006 03:11:34 AM. - lighttpd-1.4.10-mod_deflate.diff.bz2 (11.2 kB) -
dynamic compression
, added by jakabosky on 02/18/2006 07:28:30 AM. - lighttpd-1.4.10-mod_proxy.diff.bz2 (3.7 kB) -
fix round-robin load-balancing in mod_proxy
, added by jakabosky on 02/18/2006 07:56:37 AM.

