【发布时间】:2012-12-13 07:19:54
【问题描述】:
我正在尝试在按照本教程创建新的 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>
谢谢
【问题讨论】:
标签: git apache2 redmine ubuntu-12.04 httpd.conf