summaryrefslogtreecommitdiff
path: root/development/cgit/config/cgit-lighttpd.conf
blob: fc49e5763f557c32030e6eade6cae2e0aea897ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# sample virtual host configuration for lighttpd.
# edit,  move to /etc/lighttpd/ and include it in /etc/lighttpd/lighttpd.conf
# with a line
#
# include "cgit-lighttpd.conf"

$HTTP["host"] == "cgit.my.domain" {
        alias.url = (
                "/static/" => "/var/www/cgi-bin/",
                "/cgit.cgi" => "/var/www/cgi-bin/cgit.cgi",
        )
        url.rewrite-once = (
                "^/static/.*$" => "$0",
                "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
        )
        cgi.assign = (
                "/var/www/cgi-bin/cgit.cgi" => "",
        )
}