I am running Gitolite on both ssh and http mode on centOS 7. I followed this tutorial as it is.
My problem is I am able to clone all repos through ssh but can only clone the testing.git repo via http even after adding R = daemon access rule to all repositories that I want to make available via http.
gitolite.conf looks like this:
cat gitolite.conf
repo gitolite-admin
RW+ = Git-Admin
repo testing
RW+ = @all
repo avengers
RW+ = Git-Admin
repo @all
R = daemon gitweb
ssh git@192.168.15.2 info
hello Git-Admin, this is git@osboxes running gitolite3 v3.6.9-0-g144d8a2 on git 1.8.3.1
R W avengers
R W gitolite-admin
R W testing
curl http://admin:admin@192.168.15.2/git/info
hello admin, this is httpd@osboxes running gitolite3 v3.6.9-0-g144d8a2 on git 1.8.3.1
R W testing
I am not able to figure out where I'm going wrong.
thanks in advance
[root@osboxes repositories]# vim /var/www/bin/gitolite-suexec-wrapper.sh
#!/bin/bash
#
#Suexec wrapper for gitolite-shell
#
export GIT_PROJECT_ROOT="/home/git/repositories"
export GITOLITE_HTTP_HOME="/home/git"
exec ${GITOLITE_HTTP_HOME}/gitolite/src/gitolite-shell
[root@osboxes repositories]# cat /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
# You can comment out the below 3 lines and put correct value as per your server information
# ServerName gitserver.example.com
# ServerAlias gitserver
ServerAdmin youremailid@example.com
DocumentRoot /var/www/git
<Directory /var/www/git>
Options None
AllowOverride none
Order allow,deny
Allow from all
</Directory>
SuexecUserGroup git git
ScriptAlias /git/ /var/www/bin/gitolite-suexec-wrapper.sh/
ScriptAlias /gitmob/ /var/www/bin/gitolite-suexec-wrapper.sh/
#ScriptAlias /git/ /home/git/gitolite/src/gitolite-shell
#ScriptAlias /gitmob/ /home/git/gitolite/src/gitolite-shell
<Location /git>
AuthType Basic
AuthName "Git Access"
Require valid-user
AuthUserFile /etc/httpd/conf/git.passwd
</Location>
</VirtualHost>