Ich habe ein Git Repo auf meinem Raspberry Pi, mit Apache.
Ich benutze git + smart http: von einem Linux-Client, mit einem Terminal, alle funktionieren gut.
Zum Beispiel habe ich ein Repo mit dem Befehl klonen:Git + Eclipse: 401 Nicht autorisierter Fehler
git clone http://address:8080/git/repo_name
Nach dem Einsetzen des Benutzername und Passwort, es funktioniert.
Aber wenn ich die repo mit Eclipse klonen möchten, zeigt es diesen Fehler:
Dies ist das Fehlerprotokoll von Apache:
[Wed Sep 28 12:33:13.321726 2016] [negotiation:error] [pid 28020] [client 131.114.176.222:37524] AH00690: no acceptable variant: /usr/share/httpd/error/HTTP_UNAUTHORIZED.html.var
Und das ist mein Apache konfiguration (über git und smart http):
<Directory "/usr/lib/git-core*">
Options ExecCGI Indexes
Order allow,deny
Allow from all
Require all granted
</Directory>
<LocationMatch "^/.*/git-receive-pack$">
Options +ExecCGI
AuthType Basic
AuthName "Git Login"
AuthUserFile /srv/git/.git-auth-file
Require valid-user
</LocationMatch>
<LocationMatch "^/.*/git-upload-pack$">
Options +ExecCGI
AuthType Basic
AuthName "Git Login"
AuthUserFile /srv/git/.git-auth-file
Require valid-user
</LocationMatch>
SetEnv GIT_PROJECT_ROOT /srv/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
Irgendwelche Ideen?
PS: Ich verwende
Eclipse-Java EE IDE für Web-Entwickler. Version: Neon Veröffentlichung (4.6.0) Build-ID: 20160613-1800
EGit 4.4.0.20160607
Nicht an 'Neon.1 Release (4.6.1)' – Benny
funktioniert gut !!! Vielen Dank sparen Sie meinen Tag :) – seorefbe