git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Smart HTTP using Nginx

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Mar 10, 2016, 14:07 UTC
Message-ID
<1457618834.11765.12.camel@kaarsemaker.net>
In-Reply-To
<56E1730D.4030603@benmezger.nl>
On do, 2016-03-10 at 10:13 -0300, Ben Mezger wrote:
Show 6 quoted lines
> 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
Previous: Ben Mezger
Message 2 of 2 in “Git Smart HTTP using Nginx”
  1. Ben MezgerMar 10, 2016
  2. Dennis KaarsemakerMar 10, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.