Project

General

Profile

Actions

Howto Redmine » History » Revision 4

« Previous | Revision 4/6 (diff) | Next »
stbuehler, 2011-10-10 14:12
new config syntax


Howto Redmine

Simple redmine setup, see Howto_Rails for more details.

setup {
    module_load ( "mod_access", "mod_expire", "mod_fastcgi", "mod_vhost" );
}

var.vhosts = [];

# ...

var.vhosts = var.vhosts + [
    "redmine.lighttpd.net" => ${
        docroot "/var/www/servers/redmine.lighttpd.net/redmine/public/";

        if req.path =^ "/export/special" { access.deny; }

        if physical.is_file {
            header.add ("X-cleanurl", "hit");
        } else {
            header.add ("X-cleanurl", "miss");
            fastcgi "unix:/var/run/lighttpd/sockets/redmine.sock";
        }

        # static files
        if req.path =~ "^/(images|javascripts|themes|stylesheets|help|plugin_assets)/" {
            expire "access 1 week";
        }
    }
];

# ...

vhost.map var.vhosts;

Updated by stbuehler about 13 years ago · 4 revisions