michelleliu1...@gmail.com writes:

> Hello, everyone, could you help me?
> I build up the git server on myself's redhat server. 
> 1. I can use smart http visit my project through explore.
> 2. I can submit my code using 
>          git remote add origin liumei@
>          git push origin master
> But I cannot submit my code using http protocol.
>          git remote add origin http://liumei@
> I checked this article: https://git-scm.com/docs/git-http-backend
> I found that:
>      if I run the command git http-backend, my server will print the error:
>          Status: 500 Internal Server Error
>          Expires: Fri, 01 Jan 1980 00:00:00 GMT
>          Pragma: no-cache
>          Cache-Control: no-cache, max-age=0, must-revalidate
>          fatal: No REQUEST_METHOD from server
> And I also check the environment variables on my server, there is no
> any setting related to REQUEST_METHOD. There are also no any settings
> related to environment variables which are
>    - PATH_INFO (if GIT_PROJECT_ROOT is set, otherwise PATH_TRANSLATED)
> So, my questions are:
> 1. how to solve the error realted to git http-backend 500 Internal
> Server Error?
> 2. what values of these environment variables?

As it says on the page you linked to, all of those environment variables
should be set by the *invoking web server*, i.e. it's your web server
that doesn't invoke `git http-backend` correctly.

What http server are you using, and how have you configured it?


Magnus Therning              OpenPGP: 0x927912051716CE39
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

Any sufficiently advanced technology is indistinguishable from a rigged
     — Andy Finkel

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: PGP signature

Reply via email to