<VirtualHost *:80>
DocumentRoot /var/www/redmine/public/
ErrorLog /var/www/redmine/log/redmine_err.log
<Directory "/var/www/redmine/public/">
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>
<VirtualHost *:8088>
DocumentRoot /home/gang/git/
<Directory /home/gang/git/>
Options ExecCGI Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
AllowOverride all
AddHandler cgi-script cgi
DirectoryIndex gitweb.cgi
SetEnv GITWEB_CONFIG /etc/gitweb.conf
</Directory>
</VirtualHost>
SetEnv GIT_HTTP_EXPORT_ALL
后来怀疑是不是home目录下的用户目录权限设置有问题呢?
#ll /home/gang
total 20
drwx------. 51 gang gang 4096 Nov 23 18:58 gang
drwx------. 2 root root 16384 Aug 29 11:16 lost+found
果然!
好吧,就改为755:
#chmod -R 755 /home/gang
#ll /home/gang
drwxr-xr-x. 50 gang gang 4096 Nov 23 19:09 .
再次用浏览器访问额,ok!搞定!
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。