File: lighttpd-gitweb.conf

package info (click to toggle)
gitosis 0.2+20090917-11
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 420 kB
  • ctags: 291
  • sloc: python: 2,807; sh: 91; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
server.modules  += (
  "mod_cgi",
  "mod_setenv",
  "mod_redirect",
)

url.redirect += (
  "^/gitweb$" => "http://example.com/gitweb/",
)
alias.url += (
  "/gitweb/" => "/usr/lib/cgi-bin/gitweb.cgi",
  "/gitweb.css" => "/var/www/gitweb.css",
  "/git-logo.png" => "/var/www/git-logo.png",
  "/git-favicon.png" => "/var/www/git-favicon.png",
)

$HTTP["url"] =~ "^/gitweb/" {
  setenv.add-environment = (
    "GITWEB_CONFIG" => "/srv/example.com/gitweb/gitweb.conf",
  )
  cgi.assign = ( "" => "" )
}