OpenSUSE(非仮想ホスト)のApacheを介してシステムでgitwebを構成しています。ただし、次のエラーが発生します404 - No projects found
。
/etc/gitweb.conf
# path to git projects (<project>.git)
$projectroot = "/home/zhijian/gitweb";
# 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 = "/gitweb/static/indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
$stylesheet = "/gitweb/static/gitweb.css";
# logo to use
$logo = "/gitweb/static/git-logo.png";
# the 'favicon'
$favicon = "/gitweb/static/git-favicon.png";
/etc/apache2/conf.d/gitweb.conf
Alias /gitweb "/home/zhijian/gitweb"
<Directory "/home/zhijian/gitweb">
Options +Indexes +ExecCGI +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
</Directory>
gitwebフォルダーにソフトリンクを追加して、gitweb.cgiと静的フォルダーをリンクしました。Apacheエラーログにはgitweb.cgi: Can't opendir(/home/zhijian/gitweb): Permission denied
が表示されますが、gitwebフォルダーのアクセス許可は755に設定されています。この問題の原因を誰かが知っていますか?