git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Smart HTTP using Nginx
@ 2016-03-10 13:13 Ben Mezger
  2016-03-10 14:07 ` Dennis Kaarsemaker
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Mezger @ 2016-03-10 13:13 UTC (permalink / raw)
  To: git


[-- Attachment #1.1: Type: text/plain, Size: 322 bytes --]

Hi all,

The git-scm.com only uses apache2 as an example of setting Git's Smart
HTTP, and searching the web for the Nginx's config only gives me old
configs or not-functional configurations. Has anyone managed to get
Smart HTTP to work with Nginx and could give me a sample of the .conf?

Regards,

Ben Mezger


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Git Smart HTTP using Nginx
  2016-03-10 13:13 Git Smart HTTP using Nginx Ben Mezger
@ 2016-03-10 14:07 ` Dennis Kaarsemaker
  0 siblings, 0 replies; 2+ messages in thread
From: Dennis Kaarsemaker @ 2016-03-10 14:07 UTC (permalink / raw)
  To: Ben Mezger, git

On do, 2016-03-10 at 10:13 -0300, Ben Mezger wrote:

> The git-scm.com only uses apache2 as an example of setting Git's
> Smart
> HTTP, and searching the web for the Nginx's config only gives me old
> configs or not-functional configurations. Has anyone managed to get
> Smart HTTP to work with Nginx and could give me a sample of the
> .conf?

This works for me, using fcgiwrap:

    location ~ ^.*/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack)$ {
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_param SCRIPT_FILENAME   /usr/lib/git-core/git-http-backend;
        fastcgi_param PATH_INFO         $uri;
        fastcgi_param GIT_PROJECT_ROOT  $repo_root;
        fastcgi_param REMOTE_USER $remote_user;
        include fastcgi_params;
    }

-- 
Dennis Kaarsemaker
http://www.kaarsemaker.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-10 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10 13:13 Git Smart HTTP using Nginx Ben Mezger
2016-03-10 14:07 ` Dennis Kaarsemaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).