Despite all the links I\'ve found on how to configure git/nginx to get my repos, I can\'t make them work.
I followed this tutorial, Git repository over HTTP WebDAV w
Adding more details, we need 3 components: nginx
, git-http-backend
and fcgiwrap
.
git-http-backend
is a standalone excutable binary can be built from https://github.com/git/git . It's the official solution for handling git http/https access, I don't know if it is the best one that exists.fastcgi_bind
correctly).
So another fastcgi server should be used, like fcgiwarp
( a good manual https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/ )fastcgi_pass unix:/tmp/cgi.sock;
in nginx config (reference to other answers)==update==
fastcgi
is not a must, and git-http-backend
is not write only for fastcgi, and fastcgi is not simplest nor performance one.
for examples, I wrote a servlet to interact between nginx and git-http-backend, using nginx's proxy_pass
, it also works!