running git instaweb
in my repository opens a page that says "403 Forbidden - No projects found". What am I missing?
views:
1893answers:
4
A:
I don't know Git about Git, but you're probably missing the ability to execute on the directory in question, chmod +X it.
Peter Turner
2008-09-22 00:11:34
I tried it just to be sure, but it doesn't appear to be correct in this case: `git instaweb` runs `lighttpd` as the active user. I definitely have full permissions to the repository.
jes5199
2008-09-22 00:34:30
Well, I have a similar issue on my websitehttps://www.american-data.com/pub works okand http://www.american-data.com/pub gives the 403 ErrorI was getting that for a few reasons, problems following symlinks, and .htaccess files and problems with httpd.conf to name a few.
Peter Turner
2008-09-22 00:57:42
+14
A:
looks like the debian install of git sets $projectroot
globally in a way that confuses instaweb
. I removed the $projectroot
line from /etc/gitweb.conf
and the error went away.
jes5199
2008-09-22 01:15:37
@jes5199's fix also works with Ubuntu (9.04), I guess because debian is upstream.
Matt Curtis
2009-12-07 00:36:22
+1
A:
Two years later ..
I fixed this problem by stating the projectroot in gitweb.cgi (it's the only value that seems to matter)
klang
2010-08-25 10:46:22