【发布时间】:2008-09-22 00:06:38
【问题描述】:
在我的存储库中运行 git instaweb 会打开一个页面,上面写着“403 Forbidden - No projects found”。我错过了什么?
【问题讨论】:
标签: git http-status-code-403 instaweb
在我的存储库中运行 git instaweb 会打开一个页面,上面写着“403 Forbidden - No projects found”。我错过了什么?
【问题讨论】:
标签: git http-status-code-403 instaweb
看起来像 git 的 debian 安装全局设置 $projectroot 以混淆 instaweb。我从/etc/gitweb.conf 中删除了$projectroot 行,错误就消失了。
【讨论】:
我不了解 Git,但您可能缺少在相关目录上执行的能力,chmod +X 它。
【讨论】:
git instaweb 以活动用户身份运行lighttpd。我绝对拥有存储库的完全权限。
检查 git-web cgi (perl),查看 projectroot 的目录是否与您当前的设置相同。有些设置不在 gitweb.conf 中
【讨论】:
两年后..
我通过在 gitweb.cgi 中声明 projectroot 解决了这个问题(这似乎是唯一重要的值)
【讨论】:
又过了一年……
我通过以下方式解决了这个问题(F12,git 1.7.2.3):
vi .git/gitweb/gitweb.cgi # set DocumentRoot to <root>/.git/gitweb.cgi
GITWEB_CONFIG=.git/gitweb lighttpd -f .git/gitweb/httpd.conf
我没有进一步挖掘来弄清楚为什么我需要这样做......
【讨论】:
两年后...
我通过添加这一行解决了这个问题
Options All ExecCGI FollowSymLinks Includes Indexes
到我的 httpd.conf 文件
【讨论】: