創建一個新的管理平臺項目按照本教程時,我想設置自動混帳回購協議創造: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>
感謝