Назад | Перейти на главную страницу

Git push не работает после аутентификации

Я развертываю сервер git на нашем производственном SUSE 12 SP3 для доступа через Visual Studio. Сначала я сделал рабочий тестовый vm с git, который отлично работает, но после того, как я воссоздал всю работу на нашем производственном сервере, git push сбой после аутентификации пользователя со следующими ошибками:

error: Cannot access URL http://git.sevlinux.local/git/test.git/, return code 22
fatal: git-http-push failed
error: failed to push some refs to 'http://git.sevlinux.local/git/test.git'

Вот моя конфигурация Apache:

*:80     git.sevlinux.local (/etc/apache2/vhosts.d/git.sevlinux.powertech.conf:1)
*:443    cryptedweb.sevlinux.local (/etc/apache2/vhosts.d/technet.sevlinux.powertech.conf:1)
ServerRoot: "/srv/www"
Main DocumentRoot: "/srv/www/htdocs"
Main ErrorLog: "/var/log/apache2/error_log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/httpd.pid"
Define: SYSCONFIG
Define: SSL
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="wwwrun" id=30
Group: name="www" id=8

И конфигурация виртуального хоста:

<VirtualHost *:80>                                            
    DocumentRoot /srv/git                                        
    ServerName git.sevlinux.local                            
    ServerAdmin nidrax@local

    <Directory /srv/git>                                         
        AllowOverride All                                           
        Require all granted                                         
        Options +Indexes +FollowSymLinks +MultiViews                
    </Directory>   

    <Directory /usr/lib/git>                                     
        AllowOverride All                                           
        Options +ExecCGI -Includes -MultiViews +SymLinksIfOwnerMatch
        Require all granted                                         
    </Directory>     

    <LocationMatch "/*.git/">                                    
        AuthType Basic                                              
        AuthName "Git Access for GIT LOCAL"                         
        AuthUserFile /etc/apache2/conf.d/git.passwd                 
        Require valid-user                                          
    </LocationMatch>  

    Alias /git /srv/git                                          
    ScriptAlias /git/ /usr/lib/git/git-http-backend/             
    SetEnv GIT_PROJECT_ROOT /srv/git                             
    SetEnv GIT_HTTP_EXPORT_ALL                                   
</VirtualHost> 

Конфигурация репозитория:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = true
    sharedRepository = true

[remote "origin"]
    url = http://git.sevlinux.local/git/test.git

/etc/apache2/conf.d/git.passwd создается файл, содержащий данные пользователя. / SRV / git Каталог принадлежит wwwrun: www и имеет 755 разрешений (как на другой моей машине).

Я могу успешно клонировать и получить репо и получить к нему доступ через веб-браузер, указав правильный пользователь: пароль, но я не могу вставить его.