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
      Allow from localhost
      Deny from All

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] File does not exist: /var/www/htdocs/my_git_repo/info

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
You've created your repo at...


but apache is trying to serve it from...


Probably the easiest way is to just create it in /var/www/htdocs rather than in the root / directory.

Otherwise, you could try adding the below just before the <Location> element in your config...

Alias /my_git_repo /my_git_repo

Open in new window

You may or may not also try changing <Location> to <Directory> (and the same for the closing tag)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CSIA ANAuthor Commented:

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 ANAuthor Commented:
By the way, do you see my git-apache's configuration OK?
CSIA ANAuthor Commented:
Thanks mccarl.. There was a mistake on my side and apache was not pointing to the right place..
Thanks much.
mccarlIT Business Systems Analyst / Software DeveloperCommented:
You're welcome!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Version Control

From novice to tech pro — start learning today.