Avatar of CSIA AN
CSIA AN
Flag for Andorra asked on

apache 2.2 frontend for GIT.

We have installed apache 2.2 on an AIX box. We have also installed GIT rpms and now we want to setup a frontend
using apache. In the same box, apache is serving as frontend to SVN and work OK.

First, we have create a new FS and initializate GIT repository by running
#cd /my_git_repo
#git init

Open in new window


This is the configuration we have on apache for GIT.

     <Location /my_git_repo>
      Dav on
      AuthName "GIT-LDAP-Auth BSA"
      AuthType Basic
      AuthBasicProvider ldap
      AuthzLDAPAuthoritative on
      AuthLDAPBindDN "binduser@domain.net"
      AuthLDAPBindPassword password

      AuthLDAPURL "ldap://domain.net:3268/?sAMAccountName?sub?"
      AuthUserFile /dev/null
      Require ldap-user user1
      Allow from 192.168.1.1
      Allow from localhost
      Deny from All
    </Location>

Open in new window


But, now when we're going to clone the git repositpry we're having this error


[Mon Jun 15 18:02:47 2015] [error] [client 192.168.12.12] File does not exist: /var/www/htdocs/my_git_repo/info

Open in new window


Why?
Version ControlApache Web ServerGit

Avatar of undefined
Last Comment
mccarl

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
mccarl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CSIA AN

ASKER
Hi,

Sorry, I forgot to say I have created repository at /var/www/htdocs.

[root@aix:/var/www/htdocs/my_git_repo] ls -tlr
total 0
drwxr-xr-x    7 root     system          256 Jun 15 17:44 .git

Open in new window

CSIA AN

ASKER
By the way, do you see my git-apache's configuration OK?
CSIA AN

ASKER
Thanks mccarl.. There was a mistake on my side and apache was not pointing to the right place..
Thanks much.
Your help has saved me hundreds of hours of internet surfing.
fblack61
mccarl

You're welcome!!