aboutsummaryrefslogtreecommitdiff
blob: cd0bedd7d2b3ddac0659e512c2018048cb3cf2eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server.modules  += (
  "mod_cgi",
  "mod_setenv",
)

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 = ( "" => "" )
}