在按照本教程创建新的 redmine 项目时,我正在尝试设置自动 git repo 创建:http ://www.dreu.info/blog/install-redmine-with-automated-git-on-centos-redhat/
但是当我将 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>
谢谢