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 email@example.com:/opt/git/project.git > git push origin master > > But I cannot submit my code using http protocol. > git remote add origin http://firstname.lastname@example.org/git/projet.git > > 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) > - REMOTE_USER > - REMOTE_ADDR > - CONTENT_TYPE > - QUERY_STRING > > 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? > > - REMOTE_USER > - REMOTE_ADDR > - CONTENT_TYPE > - QUERY_STRING > - REQUEST_METHOD
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? /M -- 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 demo. — 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.
Description: PGP signature