mod_mem_cache patch for lighttpd 1.4.19

You can download mod_mem_cache patch for lighttpd 1.4.19 from here.

patching steps:
tar xfz lighttpd-1.4.19.tar.gz; cd lighttpd-1.4.19
wget http://blog.quehy.com/doc/lighttpd-1.4.19.mod_mem_cache.patch;
patch -p0 < lighttpd-1.4.19.mod_mem_cache.patch
sh autogen.sh

then run "./configure --quiet; make" to compile your lighttpd

Keywords: ,


9 Responses to “mod_mem_cache patch for lighttpd 1.4.19”  

  1. 1 Sean

    This doesn't seem to work with mod_expire. Every effort to get the Expires header to be sent failed. If at all possible, could you make it work with mod_expire?

  2. 2 Q

    change one line of mod_mem_cache.c

    change
    p->handle_physical = mod_mem_cache_uri_handler;
    to
    p->handle_subrequest_start = mod_mem_cache_uri_handler;

    recompile and load mod_expire before mod_mem_cache at lighttpd.conf

  3. 3 Sean

    Alright, mod_expire now works. However, mod_compress doesn't seem to work with it.

    lsof -r 1 -p Lighttpd's_PID | grep "/home/USERNAME/mod_compress_cache/"

    Shows file access if mod_compress is loaded before mod_mem_cache, and the files aren't sent compressed if mod_mem_cache loads before mod_compress.

  4. 4 Q

    mod_mem_cache doesn't cache compressed files which were created by mod_compress

  5. 5 simoon

    Hi,

    is it possible to get mod_mem_cache for the latest 1.5 version of lighty?

    Thanks

  6. 6 Q

    I am waiting for update to date lighttpd 1.5.0 release instead of r1992

  7. 7 wsgtr

    为什么我打了补丁后,有如下的错误?
    routerclub:/usr/src/lighttpd-1.4.19# ./autogen.sh
    ./autogen.sh: running `libtoolize –copy –force'
    ./autogen.sh: running `aclocal'
    ./autogen.sh: running `autoheader'
    ./autogen.sh: running `automake –add-missing –copy'
    doc/Makefile.am:89: `%'-style pattern rules are a GNU make extension
    ./autogen.sh: running `autoconf'
    configure.in:70: error: possibly undefined macro: AC_DEFINE
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.

    在configure中:
    checking for pkg-config... no
    checking for FAM... no
    ./configure: line 24955: syntax error near unexpected token `FAM,'
    ./configure: line 24955: ` PKG_CHECK_MODULES(FAM, gamin >= 0.1.0,'

  8. 8 Sam

    I followed the instructions but...

    ]# lighttpd -D -f /root/config.test.light
    2008-04-16 10:10:21: (log.c.75) server started
    2008-04-16 10:10:21: (server.c.931) WARNING: unknown config-key: mem-cache.enable (ignored)
    2008-04-16 10:10:21: (server.c.931) WARNING: unknown config-key: mem-cache.filetypes (ignored)
    2008-04-16 10:10:21: (server.c.931) WARNING: unknown config-key: mem-cache.max-memory (ignored)
    2008-04-16 10:10:21: (server.c.931) WARNING: unknown config-key: mem-cache.max-file-size (ignored)

  9. 9 dy

    checking for pkg-config... no
    checking for FAM... no
    ./configure: line 24955: syntax error near unexpected token `FAM,'
    ./configure: line 24955: ` PKG_CHECK_MODULES(FAM, gamin >= 0.1.0,'

    :/

Leave a Reply



天气信息