From 77d21931a2b39768b78d527a8d31b0670ced713e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 25 Jan 2011 10:56:31 -0800 Subject: [PATCH] Serve /gitweb/ too. Temporary hack. --- website/camweb.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/camweb.go b/website/camweb.go index 99b1fa0ce..fb0454c03 100644 --- a/website/camweb.go +++ b/website/camweb.go @@ -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)