blob: 43d6c00e7b50d9f03fba227b27926e734ec4568d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Minimal lighttpd configuration for local testing
server.document-root = "/usr/share/webapps/cgit"
server.port = 8080
server.bind = "localhost"
server.username = "sebastiano"
server.groupname = "sebastiano"
server.modules = ( "mod_cgi", "mod_rewrite", "mod_setenv" )
mimetype.assign = (
".css" => "text/css",
".png" => "image/png",
".ico" => "image/x-icon",
)
cgi.assign = ( "cgit.cgi" => "" )
setenv.add-environment = ( "CGIT_CONFIG" => "/etc/cgitrc" )
url.rewrite-once = (
"^/custom/(.*)$" => "/custom/$1",
"^/(cgit\.css|cgit\.js)(\?.*)?$" => "/$1",
"^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
)
|