after setting up git server, using smart http method and configuring apache, you can clone the code on the client side, but the locally modified code cannot be push to the server. The details are as follows:
1, http.conf configuration of apache
<VirtualHost *:80>
ServerName 192.168.3.217
SetEnv GIT_PROJECT_ROOT /home/newRepo
SetEnv GIT_HTTP_EXPORT_ALL
-sharpSetEnv 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. Error message for client performing push operation:
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, error message of 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
now I don"t know what the problem is, which god can give me some guidance?