[英]Trying to setup git-http-backend on apache 2.4
我目前正在尝试设置一个git存储库,以通过apache 2.4通过http访问。
由于我无法理解的原因,我的客户总是会回应克隆或推送尝试
*URL*/git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
我将配置降至最低,甚至摆脱了Aliasmatches:
<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>
仓库本身已经使用git init --bare
进行了git init --bare
,并被符号链接到/ var / www / git中。
我要你告诉我,我缺少什么明显的东西。 我已经运行了git-update-server-info,并且www用户可以读写该存储库。
先感谢您
我注意到您的配置文件中的“ SetEnv GIT_HTTP_EXPORT_ALL = true”行不应带有等号(“ =”)。 该等号可能会导致Apache设置错误的环境变量名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.