正在尝试在Apache2.4上设置GitHTTP后端

正在尝试在Apache2.4上设置GitHTTP后端,git,apache,apache2.4,Git,Apache,Apache2.4,我目前正在尝试设置一个git存储库,以便通过Apache2.4通过http访问 出于我无法理解的原因,我的客户总是会对克隆或推送尝试做出回应 *URL*/git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server? 我已经将配置精简到绝对最小,甚至去掉了别名匹配: <VirtualHost *:80> Options +FollowSymlinks

我目前正在尝试设置一个git存储库,以便通过Apache2.4通过http访问

出于我无法理解的原因,我的客户总是会对克隆或推送尝试做出回应

*URL*/git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
我已经将配置精简到绝对最小,甚至去掉了别名匹配:

<VirtualHost *:80>
Options +FollowSymlinks
SetEnv GIT_PROJECT_ROOT /opt/git/nocturne/
SetEnv GIT_HTTP_EXPORT_ALL=true
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
<Location "/git">
       Options +ExecCGI
       AuthName "Git repository, use ldap credentials"
       AuthLDAPURL "ldap://127.0.0.1:389/ou=People,dc=domain,dc=stuff?uid?sub?(objectClass=simpleSecurityObject)"
       AuthType Basic
       AuthName "Git"
       AuthBasicProvider ldap
       AuthLDAPGroupAttribute member
       AuthLDAPGroupAttributeIsDN Off
       require valid-user
       require ldap-group cn=git-user,ou=Groups,dc=domain,dc=stuff
</Location>
</VirtualHost>

选项+FollowSymlinks
SetEnv GIT_PROJECT_ROOT/opt/GIT/noctune/
SetEnv GIT_HTTP_EXPORT_ALL=true
ScriptAlias/git//usr/lib/git-core/git-http后端/
选项+执行CGI
AuthName“Git存储库,使用ldap凭据”
AuthLDAPURL“ldap://127.0.0.1:389/ou=People,dc=domain,dc=stuff?uid?sub?(objectClass=simpleSecurityObject)
AuthType Basic
AuthName“Git”
AuthBasicProvider ldap
AuthLDAPGroupAttribute成员
AuthLDAPGroupAttributesIDN关闭
需要有效用户
需要ldap组cn=git user,ou=Groups,dc=domain,dc=stuff
存储库本身已使用
gitinit--bare
初始化,并被符号链接到/var/www/git

我要你告诉我,我遗漏了什么明显的东西。我已经运行了git update server info,www用户可以读写存储库


提前谢谢

我注意到配置文件中的“SetEnv GIT_HTTP_EXPORT_ALL=true”行不应该有等号(“=”)。该等号可能导致Apache设置了错误的环境变量名。

dumb httlp?这不是哑巴,这是智能http:。谢谢你指出我的误解。我已经更正了这个问题。您是否在上签出了示例?您是否将远程用户设置为中的?您是否尝试了
目录
而不是
位置
?(如中所示)