我在OpenSUSE(非虛擬主機)中通過Apache在我的系統中配置gitweb。但是,我收到以下錯誤:404 - No projects found
。配置GitWeb - 404 - 沒有找到項目
/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.有人知道可能會導致此問題的原因是什麼?
什麼是上層展示的許可?嘗試'蘇'作爲'www'(或任何它是在你的機器上)用戶和cd進入這個目錄 – CharlesB 2012-04-23 06:44:59
你的意思是我需要檢查文件夾的用戶? – xuzhijian 2012-04-23 06:56:32
是的,這是正確的 – CharlesB 2012-04-23 06:57:24