git repo创建的httpd.conf失败

git repo创建的httpd.conf失败,git,apache2,redmine,ubuntu-12.04,httpd.conf,Git,Apache2,Redmine,Ubuntu 12.04,Httpd.conf,根据本教程创建新的redmine项目时,我正在尝试设置git repo的自动创建: 但是,当我将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-

根据本教程创建新的redmine项目时,我正在尝试设置git repo的自动创建:

但是,当我将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>
PerlLoadModule Apache::Redmine SetEnv GIT_PROJECT_ROOT/var/GIT/ SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias/git//usr/libexec/git-core/git-http后端/ RedmineGitSmartHttp是 达文 AuthType Basic 需要有效用户 AuthName“git” PerlAccessHandler Apache::Authn::Redmine::access\u处理程序 PerlAuthenHandler Apache::Authn::Redmine::authen\u处理程序 RedmineDSN“DBI:mysql:database=redmine_database;host=localhost” RedmineDbUser“用户” RedMinedPass“密码” 别名/git private/var/git 命令拒绝,允许 全盘否定 选项索引跟随符号链接多视图 允许从127.0.0.1开始 允许从本地主机 谢谢,我解决了。 git http后端的路径不正确。 为了找到正确的路径,我使用了'find/-name git-http-backend',并将路径更改为:/usr/lib/git-core/git-http-backend/

感谢您的决定

我自己也遇到了类似的问题。 将CentOS升级到5.10后,“git软件包”成为新的位置:

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 ls-1/usr/bin/git-*|头-5 /usr/bin/git add /usr/bin/git add——交互式 /usr/bin/git am /usr/bin/git注释 /usr/bin/git应用