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 <Directory "/var/www/gitrepo"> Options Indexes FollowSymlinks ExecCGI Allow From All Dav On </Directory> 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 <Location /git> Dav on AuthType Basic AuthName "Git Repositories" AuthUserFile /etc/.htpasswd Require valid-user </Location> 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. My OS is Centos 6. It is a VM. -- 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.