Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 368
GorillaApe Avatar asked Oct 06 '12 12:10

GorillaApe


People also ask

What is Git HTTP backend?

A simple CGI program to serve the contents of a Git repository to Git clients accessing the repository over http:// and https:// protocols. The program supports clients fetching using both the smart HTTP protocol and the backwards-compatible dumb HTTP protocol, as well as clients pushing using the smart HTTP protocol.

Is Git a backend?

Yet, that's exactly what developer Ephi Gabay did with his experimental proof-of-concept GIC: a chat client written in Node. js using Git as its backend database. GIC is by no means intended for production use. It's purely a programming exercise, but it's one that demonstrates the flexibility of open source technology.


1 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

like image 87
emste Avatar answered Oct 30 '22 12:10

emste