Debianサーバーでgitをセットアップしようとしています。ただし、EclipseにEgitプラグインを使用したいので、このSmart HTTPに夢中になり、SmartHTTPが必要になります。このため、ローカルブランチをサーバー上のリモートリポジトリにプッシュできません。ApacheとGit1.7.2.3をインストールしました。基本認証を使用していて、、、を有効mod_cgi
にmod_env
しmod_alias
ました。gitのもののapache設定ファイルはにあり/etc/apache2/sites-available/git
、次の内容が含まれています。
<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>
ディレクトリは次のとおりです。
/var/git
:これは私のすべてのリポジトリが置かれるディレクトリです/var/git/allternative
:これは、私が現在設定しようとしている(ベア)リポジトリが存在するディレクトリです。
私はこの記事で読んだすべてのことをしました(そして他の多くの人が同じことについて言っています):http://progit.org/2010/03/04/smart-http.html
Egitから、リモートSmartHTTPが有効になっていないというエラーが引き続き表示されます。私は何が欠けていますか?
よろしくお願いします、アンドレアス