Hii I am trying to set up a private git server on FreeBSD Machine. I am trying to use smart-http to authenticate. I am attaching apache configuration file(httpd.conf) in "/usr/local/etc/apache24/". My git repos are present inside the folder: /home/git/repos/ test.git is a bare repository.
I have set http.receivepack to true in my repo. I am able to clone the repo from another host. But when I try to push the changes, I get the following error: "error: Cannot access URL http://192.168.1.9:80/git/test.git/, return code 22 fatal: git-http-push failed error: failed to push some refs to 'http://192.168.1.9:80/git/test.git/" I have spent several days, editing the Apache config. settings, but with no use. Can someone help with this? -Thanks Sai Kiran. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/2c0243ce-76fe-4e7e-b476-d0cca33d7925n%40googlegroups.com.
<VirtualHost *:80> DocumentRoot "/home/git/repos" Alias /git /home/git/repos SetEnv GIT_PROJECT_ROOT /home/git/repos SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/local/libexec/git-core/git-http-backend/$1 ScriptAliasMatch \ "(?x)^/git/(.*/(HEAD | \ info/refs | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$" \ /usr/local/libexec/git-core/git-http-backend/$1 <Directory /home/git/repos/test.git> Options +ExecCGI +Indexes AuthType Basic AuthName "Git Authentication" AuthUserFile /home/git/repos/.htpasswd Require valid-user DirectoryIndex test.git </Directory> </VirtualHost>