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?
LVL 2
CSIA ANAsked:
Who is Participating?
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...

/my_git_repo

but apache is trying to serve it from...

/var/www/htdocs/my_git_repo


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

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

0
CSIA ANAuthor Commented:
By the way, do you see my git-apache's configuration OK?
0
CSIA ANAuthor Commented:
Thanks mccarl.. There was a mistake on my side and apache was not pointing to the right place..
Thanks much.
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
You're welcome!!
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.