我想在我的Debian服务器上设置git。然而,我对这个智能HTTP的东西感到疯狂,因为我想用eclipse的Egit插件,它需要智能HTTP。为此,我无法将我的本地分支推送到我的服务器上的远程存储库。我已经安装了Apache和Git 1.7.2.3。我正在使用基本身份验证,并启用了mod_cgi
,mod_env
和mod_alias
。对于混帐东西,我的Apache配置文件位于/etc/apache2/sites-available/git
,拥有大约下列内容:Git,Debian,Apache和智能HTTP
<VirtualHost *:80>
Servername git.mydomain.com
DocumentRoot /var/git
SetEnv GIT_PROJECT_ROOT /var/git/
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
<Directory "/var/git">
DAV On
Options +Indexes +FollowSymLinks
Deny from all
AuthType Basic
AuthName "git repository"
AuthUserFile /var/git/.htpasswd
AuthGroupFile /var/git/.htgroup
</Directory>
<Directory /var/git/allternative>
Allow from all
Order allow,deny
Require group allternative
</Directory>
<Directory "/usr/lib/git-core/git-receive-pack">
Allow from all
Order allow,deny
Require group allternative
</Directory>
</VirtualHost>
的diretories如下:
/var/git
:这是我的所有存储库将是目录/var/git/allternative
:这是所在的目录(裸)库撒谎说我目前正在试图建立
我做了我在这篇文章上阅读的所有内容(和许多其他人说的一样):http://progit.org/2010/03/04/smart-http.html
我仍然从Egit得到远程智能HTTP未启用的错误。我错过了什么?
由于提前, 安德烈亚斯