我正在尝试让gitweb在opensuse中运行。我配置了一些conf文件后。它仍然无法正常工作。它给我一些错误信息:
[Thu Apr 19 05:13:16 2012] [error] [client 10.239.197.169] fatal: error processing config file(s)
[Thu Apr 19 05:13:16 2012] [error] [client 10.239.197.169] fatal: Not a git repository: '/home/jiradev/jirarepo.git'
这是/etc/gitweb.conf中的conf文件
# path to git projects (<project>.git)
$projectroot = "/home/jiradev";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
$stylesheet = "/gitweb.css";
# logo to use
$logo = "/git-logo.png";
# the 'favicon'
$favicon = "/git-favicon.png";
在/etc/apache2/conf.d/gitweb.conf中:
Alias /git "/usr/share/gitweb"
Alias /gitweb.css /usr/share/gitweb/static/gitweb.css
Alias /git-logo.png /usr/share/gitweb/static/git-logo.png
Alias /git-favicon.png /usr/share/gitweb/static/git-favicon.png
<Directory "/usr/share/gitweb">
Options FollowSymlinks ExecCGI
AllowOverride All
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
Order allow,deny
Allow from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* /gitweb.cgi/$0 [L,PT]
</Directory>
<Directory "/home/jiradev">
Allow from all
</Directory>
在/ usr / share / gitweb中,有gitweb.cgi,jiradev和static .jiradev是/ home / jiradev的软链接,其中包含一个名为jirarepo.git(755)的git。