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.

Docs for mod_deflate

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

#462
Problems when using ssi includes with subdirectories.
#524
Memory leak - patch attached

Attachments