I’ll just post my lighttpd.conf. The rest can be easily found on the Internet.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$HTTP["host"] =~ "^dev.dornea.nu$" {
        evhost.path-pattern = "/home/redmine/current/public"
        server.follow-symlink = "enable"
        
        server.indexfiles = ( "dispatch.fcgi" )
        server.error-handler-404 = "/dispatch.fcgi"

        #dir-listing.activate = "enable"
        
        url.rewrite-once = (
            "^/(.*..+(?!html))$" => "$0",
            "^/(.*).(.*)"        => "$0",
        )
 
        fastcgi.server      = ( ".fcgi" => ( "redmine" => (
                "min-procs"       => 1,
                "max-procs"       => 5,
                "socket" => "/tmp/redmine.socket",
                "bin-path" => "/usr/bin/ruby /home/redmine/current/public/dispatch.fcgi",
                "bin-environment" => ( "RAILS_ENV" => "production" )
        ) ) )

    }

My redmine installation can be found under /home/redmine/current