lighttpd 1.5.0 pr on Debian sid step by step

Download:

http://www.lighttpd.net/download/lighttpd-1.5.0-r1857.tar.gz

Prerequisites:

sudo aptitude install libglib2.0-dev libpcre3-dev zlib1g-dev libaio-dev libbz2-dev automake1.9

Configure:

./configure –prefix={yourprefix}

Build:

make clean install

Run:

{yourprefix}/sbin/lighttpd –f {yourprefix}/etc/lighttpd.conf

More:

I modified mod_extforward to make it compatible with 1.5.0 pre-release

Patch:

cd your-path-to-source/lighttpd-1.5.0/
patch -p1 < lighttpd-1.5.0-pr-mod_extforward.patch
autoreconf

patch:
lighttpd-1.5.0-pr-mod_extforward.patch

Trac on lighttpd

$HTTP["host"] =~ "^trac\.lighttpd\.net" {
    # alias, ...

    $HTTP["url"] =~ "^/trac/" {
        proxy-core.backends = ( "127.0.0.1:9090" )
        proxy-core.protocol = "fastcgi"
        proxy-core.rewrite-request = (
           "_pathinfo" => ( "^/trac(/.*)" => "$1" ),
           "_scriptname" => ( "^(/trac/)" => "$1" )
        )
    }
}

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Default and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash