Eli <elirenato2...@gmail.com> writes:
> I'm trying to use Git over HTTP but I'm getting the error
> [Wed Apr 06 13:35:15.208592 2016] [cgi:error] [pid 6821] [client ...] 
> AH01215: Not a git repository: '/var/git/repositories/my-project.git'
> On the client side I'm trying this:
> git clone http://myhost.com/git/my-project.git/
> Cloning into 'my-project'...
> fatal: repository 'http://myhost.com/git/my-project.git/' not found
> On the server side:
> The Apache Server is the version 2.4 and It has this configuration:
> SetEnv GIT_PROJECT_ROOT /var/git/repositories
> ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
> <Directory "/usr/lib/git-core">
>     Options +ExecCGI
>     Require all granted
> </Directory>
> The project root rirectory /var/git/repositories has the my-project.git 
> directory that was initialized with the command git --bare init 
> my-project.git. I also change the owner of the my-project.git directory to 
> be the same as apache, so, chown -R apache:apache 
> /var/git/repositories/my-project.git.
> Could you please help me figure out what I'm doing wrong? What I missed?

I'd try logging in on the server as apache, then running the
git-http-backend command that Apache should be running and see what it
says.  Even better if you can get Apache to log exactly how it is
calling git-http-backend.  If the script gives you the same error, then
you know it isn't an Apache configuration problem.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to