0

我正在尝试让 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 和静态 .jiradev 是 /home/jiradev 的软链接,其中包含一个名为 jirarepo.git(755) 的 git。 在此处输入图像描述

4

0 回答 0