Git and Smart Http

matthewpintor
matthewpintor
I'm trying to create a local repository in our server. With many ways of configuring the server for secure access in the repository as i searched, i choose smart http as my repository deployment. but as i go on in the tutorials and many documents, i'm confused on how to deploy it. I disabled the selinux. create git.conf in /etc/httpd/conf.d and a /var/www/gitrepo for different repositories. the content of git.conf is SetEnv GIT_PROJECT_ROOT /var/www/gitrepo Options Indexes FollowSymlinks ExecCGI Allow From All Dav On 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/libexec/git-core/git-http-backend/$1 ScriptAlias /git /usr/libexec/git-core/git-http-backend Dav on AuthType Basic AuthName "Git Repositories" AuthUserFile /etc/.htpasswd Require valid-user i kept on receiving errors like: fatal: GIT_PROJECT_ROOT is set but PATH_INFO is not when i assign value to PATH_INFO with $SCRIPT_URL, i keep getting: fatal: '$SCRIPT_URL=': aliased What is suppost to be the owner of the .htpasswd and .htgroup file and even the repository folder? is it the apache user or the git user? Please help me.

Last updated

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
930 views