正在使用 Git 安装附带的 GitWeb 并使用 WAMP 提供的 Apache,当我访问页面时http://localhost/gitweb/
我收到404 - No projects found
错误,我修改了gitweb.cgi
文件上的变量projectroot
,但根据一些帖子,这个文件不应该被编辑,我需要修改相同的变量,但现在在文件 gitweb.conf 上,我可以找到这个文件,我尝试过
gitweb.conf
gitweb-common.conf
gitweb_config.perl
我没有任何这些文件,有什么想法吗?顺便说一句,我正在开发Windows
我在 gitweb 上修改了下一个变量.cgi
our $GIT = "C:/Git190/bin/git";
our $projectroot = "C:/git/testRepository/.git";
我发现了错误,我只是修改了gitweb.cgi
,问题出在$projectroot
变量的路径上,我是这样的:
our $projectroot = "C:/git/testRepository/.git";
但我需要像这样设置值:
our $projectroot = "/c/git/testRepository";
我不知道为什么,但它现在正在工作:)