git instaweb gives 403 Forbidden - No projects found

坚强是说给别人听的谎言 提交于 2019-12-03 15:18:36

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!