客户端通过服务器配置否认试图使用git-HTTP-backend.exe [英] Client denied by server configuration while trying to use git-http-backend.exe

查看:163
本文介绍了客户端通过服务器配置否认试图使用git-HTTP-backend.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Apache 2.4

I use apache 2.4

Sat Oct 06 15:25:47.948789 2012] [authz_core:error] [pid 7580:tid 1232] [client 192.168.100.252:10153] AH01630: client denied by server configuration: C:/Program Files (x86)/Git/libexec/git-core/git-http-backend.exe

下面是我的配置

<Directory "C:\git-server">
Options +ExecCGI
Allow from all
</Directory>

 <VirtualHost *:80>
  DocumentRoot  "C:/git-server"
   ServerName ****
  DirectoryIndex index.php

SetEnv GIT_PROJECT_ROOT c:/git-server
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /git/ "C:/Program Files (x86)/Git/libexec/git-core/git-http-backend.exe/$1"


<LocationMatch "^/.*/git-receive-pack$">
Options +ExecCGI
AuthType Basic
AuthName intranet
AuthUserFile "C:/git-server/config/users"
Require valid-user
</LocationMatch>

<LocationMatch "^/.*/git-upload-pack$">
Options +ExecCGI
AuthType Basic
AuthName intranet
AuthUserFile "C:/git-server/config/users"
Require valid-user
</LocationMatch>


</VirtualHost>

我想2天设置饭桶。我没有想到,这是困难的。

I am trying 2 days to setup git. i didnt expect that it was that difficult.

推荐答案

您应该改变你的配置相匹配的Apache 2.4的要求:

You should change your configuration to match the needs of Apache 2.4:

<Directory "C:\git-server">
Options +ExecCGI
Require all granted
</Directory>

来源:<一个href=\"http://httpd.apache.org/docs/2.4/upgrading.html#access\">http://httpd.apache.org/docs/2.4/upgrading.html#access

这篇关于客户端通过服务器配置否认试图使用git-HTTP-backend.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆