Link to home
Create AccountLog in
Avatar of CSIA AN
CSIA ANFlag 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?
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of 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

Avatar of CSIA AN

ASKER

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

ASKER

Thanks mccarl.. There was a mistake on my side and apache was not pointing to the right place..
Thanks much.
You're welcome!!