Serve /gitweb/ too. Temporary hack.

This commit is contained in:
Brad Fitzpatrick 2011-01-25 10:56:31 -08:00
parent d5192826d3
commit 77d21931a2
1 changed files with 5 additions and 0 deletions

View File

@ -184,6 +184,11 @@ func main() {
Cgi: &CgiHandler{ExecutablePath: *gitwebScript},
Static: http.FileServer(*gitwebFiles, "/code/"),
})
// For now, also register this alias for convenience.
// Some distros' default gitweb config links to resources
// in the current directory but Lucid links to /gitweb/ instead.
// TODO: specify a gitweb config file.
mux.Handle("/gitweb/", http.FileServer(*gitwebFiles, "/gitweb/"))
}
mux.HandleFunc("/", mainHandler)