Git push over http(使用git-http-backend)和Apache不起作用
我拼命地试图通过使用git-http-backend的“智能-http”模式推动git工作。 然而经过几个小时的testing和故障排除之后,我依然留下了 error: Cannot access URL http://localhost/git/hello.git/, return code 22 fatal: git-http-push failed` 我正在使用最新版本的Ubuntu(12.04),Apache2(2.2.22)和Git(1.7.9.5),并遵循互联网上的不同教程,就像这个http://www.parallelsymmetry.com/howto/git .jsp 。 我的VHost文件目前看起来像这样: <VirtualHost *:80> SetEnv GIT_PROJECT_ROOT /var/www/git SetEnv GIT_HTTP_EXPORT_ALL SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER DocumentRoot /var/www/git ScriptAliasMatch \ "(?x)^/(.*?)\.git/(HEAD | \ info/refs | \ objects/info/[^/]+ | \ git-(upload|receive)-pack)$" \ /usr/lib/git-core/git-http-backend/$1/$2 <Directory /var/www/git> Options +ExecCGI +SymLinksIfOwnerMatch -MultiViews AllowOverride None Order allow,deny allow from all […]