Project

General

Profile

Actions

Howto cgit » History » Revision 1

Revision 1/4 | Next »
stbuehler, 2009-11-12 23:01


Howto cgit

cgit is a web frontend for git repositories. You need a FastCGI CGI wrapper running (see Howto_CGI).

Lighttpd config

setup {
    module.load ( "mod_fastcgi", "mod_vhost" );
}

var.vhosts = [];

# ...

var.vhosts = var.vhosts + [
    "cgit.lighttpd.net": ${
        if request.path =^ "/static/" {
            alias "/static/" => "/usr/share/cgit";
        } else {
            rewrite "/cgit.cgi?url=%{enc:request.path}&%{request.query}";
            docroot "/usr/lib/cgi-bin";       # docroot after rewrite !
            fastcgi "unix:/var/run/lighttpd/sockets/www-cgi.sock";
        }
    }
];

# ...

vhost.map var.vhosts;

/etc/cgitrc

css=/static/cgit.css
virtual-root=/

Updated by stbuehler about 15 years ago · 4 revisions