blob: ac59b7ae6dbe709a4e64695181272be3427c1a7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
server.modules += ( "mod_cgi", "mod_rewrite" )
#$SERVER["socket"] == ":443" {
$SERVER["socket"] == ":80" {
#ssl.engine = "enable"
#ssl.pemfile = "/etc/lighttpd/ssl/git.example.com.pem"
server.name = "git.terminaldweller.com"
server.document-root = "/usr/share/webapps/cgit/"
index-file.names = ( "cgit.cgi" )
cgi.assign = ( "cgit.cgi" => "" )
mimetype.assign = ( ".css" => "text/css" )
url.rewrite-once = (
"^/cgit/cgit.css" => "/cgit.css",
"^/cgit/cgit.png" => "/cgit.png",
"^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2",
)
}
|