使用smart http方式搭建git server,配置好apache后,可以在客户端clone代码,但本地修改的代码无法push到服务器,详细信息如下:
1、apache的http.conf配置
<VirtualHost *:80>
ServerName 192.168.3.217
SetEnv GIT_PROJECT_ROOT /home/newRepo
SetEnv GIT_HTTP_EXPORT_ALL
#SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /git/ /usr/local/git/libexec/git-core/git-http-backend/
<Directory "/usr/local/git/libexec/git-core*">
Options ExecCGI Indexes
Order allow,deny
Allow from all
</Directory>
<Location /git/>
AuthType Basic
AuthName "Git Access"
AuthUserFile /home/git-auth
Require valid-user
LimitRequestBody 52428800
AuthBasicProvider file
</Location>
</VirtualHost>
2、客户端执行push操作报错信息:
λ git push origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 220 bytes | 55.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
3、apache的报错信息:
[Fri Nov 16 17:32:18.600137 2018] [core:error] [pid 17746:tid 140414598117120] (70007)
The timeout specified has expired: [client 192.168.9.101:2786] AH00574:
ap_content_length_filter: apr_bucket_read() failed
现在不知道问题出在哪,有哪位大神指导一下?