我想在我的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未啓用的錯誤。我錯過了什麼?
由於提前, 安德烈亞斯