我正在使用centOS来设置我自己的Git服务器,我希望同时使用ssh和http模式。 之后是' smart-http.root-setup '。
当我执行git命令“ git clone http://admin:admin@180.163.69.211/git/testing ”时遇到问题。
I am using centOS to set my own Git Server by gitolite,I want to use both ssh and http mode. After followed the 'smart-http.root-setup'.
I come across a problem when I execute the git command "git clone http://admin:admin@180.163.69.211/git/testing".
最满意答案
你需要仔细检查你的httpd.conf定义的smart-http.root-setup#L81-L92 :
export GITOLITE_HTTP_HOME=$PWD/gitolite-home ... SetEnv GIT_PROJECT_ROOT $GITOLITE_HTTP_HOME/repositories ScriptAlias /git/ $GITOLITE_HTTP_HOME/gitolite-source/src/gitolite-shell/确保服务器上存在$GITOLITE_HTTP_HOME/repositories/testing.git 。
OP S.Yuan 在评论中报道:
我检查/etc/httpd/logs的suexec.log ,主要问题是文件exec auth错误。 所以我删除了gitolite-suexec-wrapper.sh文件。 然后再次创建它,然后更改文件身份验证。
You need to double-check your httpd.conf defined by smart-http.root-setup#L81-L92:
export GITOLITE_HTTP_HOME=$PWD/gitolite-home ... SetEnv GIT_PROJECT_ROOT $GITOLITE_HTTP_HOME/repositories ScriptAlias /git/ $GITOLITE_HTTP_HOME/gitolite-source/src/gitolite-shell/Make sure $GITOLITE_HTTP_HOME/repositories/testing.git does exists on your server.
The OP S.Yuan reports in the comments:
如何在http模式下使用gitolite(How to using gitolite with http mode)I check the suexec.log in /etc/httpd/logs and the main issue is the file exec auth error. So I delete the gitolite-suexec-wrapper.sh file. And create it again, then change the file auth.
我正在使用centOS来设置我自己的Git服务器,我希望同时使用ssh和http模式。 之后是' smart-http.root-setup '。
当我执行git命令“ git clone http://admin:admin@180.163.69.211/git/testing ”时遇到问题。
I am using centOS to set my own Git Server by gitolite,I want to use both ssh and http mode. After followed the 'smart-http.root-setup'.
I come across a problem when I execute the git command "git clone http://admin:admin@180.163.69.211/git/testing".
最满意答案
你需要仔细检查你的httpd.conf定义的smart-http.root-setup#L81-L92 :
export GITOLITE_HTTP_HOME=$PWD/gitolite-home ... SetEnv GIT_PROJECT_ROOT $GITOLITE_HTTP_HOME/repositories ScriptAlias /git/ $GITOLITE_HTTP_HOME/gitolite-source/src/gitolite-shell/确保服务器上存在$GITOLITE_HTTP_HOME/repositories/testing.git 。
OP S.Yuan 在评论中报道:
我检查/etc/httpd/logs的suexec.log ,主要问题是文件exec auth错误。 所以我删除了gitolite-suexec-wrapper.sh文件。 然后再次创建它,然后更改文件身份验证。
You need to double-check your httpd.conf defined by smart-http.root-setup#L81-L92:
export GITOLITE_HTTP_HOME=$PWD/gitolite-home ... SetEnv GIT_PROJECT_ROOT $GITOLITE_HTTP_HOME/repositories ScriptAlias /git/ $GITOLITE_HTTP_HOME/gitolite-source/src/gitolite-shell/Make sure $GITOLITE_HTTP_HOME/repositories/testing.git does exists on your server.
The OP S.Yuan reports in the comments:
I check the suexec.log in /etc/httpd/logs and the main issue is the file exec auth error. So I delete the gitolite-suexec-wrapper.sh file. And create it again, then change the file auth.
发布评论