Question

running git instaweb in my repository opens a page that says "403 Forbidden - No projects found". What am I missing?

Was it helpful?

Solution

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.

OTHER TIPS

I don't know Git about Git, but you're probably missing the ability to execute on the directory in question, chmod +X it.

check the git-web cgi (the perl), see the directory of the projectroot is same as your currect setting. there are some settings that not in gitweb.conf

Two years later ..

I fixed this problem by stating the projectroot in gitweb.cgi (it's the only value that seems to matter)

And another year later ...

I fixed this problem (F12, git 1.7.2.3) by:

vi .git/gitweb/gitweb.cgi   # set DocumentRoot to <root>/.git/gitweb.cgi
GITWEB_CONFIG=.git/gitweb lighttpd -f .git/gitweb/httpd.conf

I didn't dig further to figure out why I needed to do this ...

two year later ...

I fixed this problem by adding this line

Options All ExecCGI FollowSymLinks Includes Indexes

to my httpd.conf file

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top