Client denied by server configuration while trying to use git-http-backend.exe

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

Here is my configuration

<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>

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

Answers


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

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

Source: http://httpd.apache.org/docs/2.4/upgrading.html#access


Need Your Help

Unable to get spring boot to automatically create database schema

java mysql spring hibernate spring-boot

I'm unable to get spring boot to automatically load my database schema when I start it up.

User/Pass Authentication using RESTful WCF & Windows Forms

.net wcf restful-authentication ws-security

What is the best approach to implementing authorisation/authentication for a Windows Forms app talking to an IIS-hosted RESTful WCF Service?