2012-12-27 84 views
0

創建一個新的管理平臺項目按照本教程時,我想設置自動混帳回購協議創造:http://www.dreu.info/blog/install-redmine-with-automated-git-on-centos-redhat/爲httpd.conf中git倉庫創建失敗

但是當我添加的httpd.conf到我的空的httpd.conf ,apache2不會啓動。有人可以幫我解決問題,或者驗證配置是否正確?

PerlLoadModule Apache::Redmine 

SetEnv GIT_PROJECT_ROOT /var/git/ 
SetEnv GIT_HTTP_EXPORT_ALL 
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/ 
<Location /git> 
     RedmineGitSmartHttp yes 
     DAV on 

     AuthType Basic 
     Require valid-user 
     AuthName "git" 

     PerlAccessHandler Apache::Authn::Redmine::access_handler 
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler 

     RedmineDSN "DBI:mysql:database=redmine_databse;host=localhost" 
     RedmineDbUser "user" 
     RedmineDbPass "password" 

</Location> 

Alias /git-private /var/git 

<Location /git-private> 

     Order deny,allow 
     Deny from all 

     <Limit GET PROPFIND OPTIONS REPORT> 

       Options Indexes FollowSymLinks MultiViews 
       Allow from 127.0.0.1 
       Allow from localhost 
     </Limit> 
</Location> 

感謝

回答

1

我解決它。 git-http-backend的路徑不正確。 找到我用「查找/ -name的git-HTTP-後端」,改變了路徑的正確路徑:/ usr/lib中/ git的核心/ GIT-HTTP-後端/

0

感謝決定

。 。

自己要求過於有類似的問題,遇到 升級後的CentOS高達5.10,「混帳包」是新的地方:

 
    ls -1 /usr/bin/git-*|head -5 
    /usr/bin/git-add 
    /usr/bin/git-add--interactive 
    /usr/bin/git-am 
    /usr/bin/git-annotate 
    /usr/bin/git-apply