git instaweb gives 403 Forbidden - No projects found

妖精的绣舞 提交于 2019-12-09 10:58:35

问题


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


回答1:


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.




回答2:


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




回答3:


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




回答4:


Two years later ..

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




回答5:


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 ...




回答6:


two year later ...

I fixed this problem by adding this line

Options All ExecCGI FollowSymLinks Includes Indexes

to my httpd.conf file



来源:https://stackoverflow.com/questions/112613/git-instaweb-gives-403-forbidden-no-projects-found

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