【问题标题】:httpd.conf for git repo creation fails用于 git repo 创建的 httpd.conf 失败
【发布时间】: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


    【解决方案1】:

    我解决了。 git-http-backend 的路径不正确。 为了找到正确的路径,我使用了“find / -name git-http-backend”并将路径更改为:/usr/lib/git-core/git-http-backend/。

    【讨论】:

      【解决方案2】:

      感谢您的决定。

      我自己也遇到过类似的问题。 将 CentOS 升级到 5.10 后,'git packages' 是新的地方:

      ls -1 /usr/bin/git-*|head -5 /usr/bin/git-add /usr/bin/git-add--交互式 /usr/bin/git-am /usr/bin/git-annotate /usr/bin/git-apply

      【讨论】:

        猜你喜欢
        • 2018-12-01
        • 1970-01-01
        • 1970-01-01
        • 2014-09-03
        • 2022-11-04
        • 2015-09-24
        • 2017-12-25
        • 2015-12-01
        • 1970-01-01
        相关资源
        最近更新 更多