summaryrefslogtreecommitdiff
path: root/cgit/lighttpd.conf
blob: bdc295b9aa8ba9dc682da748e52204fbb7e06791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
server.document-root = "/usr/share/webapps/cgit"
server.port = 80

server.modules = (
    "mod_cgi",
    "mod_rewrite",
)

index-file.names = ("cgit.cgi")
cgi.assign = (".cgi" => "")

url.rewrite-once = (
    "^(/[^?]*)(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2"
)