All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Glenn Strauss via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Glenn Strauss <gstrauss@gluelogic.com>,
	Glenn Strauss <gstrauss@gluelogic.com>
Subject: [PATCH] update git-http-backend doc for lighttpd
Date: Wed, 12 Feb 2020 03:52:30 +0000	[thread overview]
Message-ID: <pull.546.git.git.1581479550353.gitgitgadget@gmail.com> (raw)

From: Glenn Strauss <gstrauss@gluelogic.com>

git-http-backend may be found at /usr/libexec/git-core/git-http-backend

scope lighttpd config directives for git-http-backend under "^/git"

Note:
lighttpd 1.4.51 setenv.add-environment does not add vars with empty value.
so use "GIT_HTTP_EXPORT_ALL" => "1" (with a value) in lighttpd 1.4.51.
lighttpd setenv.set-environment does, but was only introduced in 1.4.46
lighttpd 1.4.52 setenv.add-environment restores prior lighttpd 1.4.50
behavior.

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
---
    update git-http-backend doc for lighttpd
    
     update git-http-backend doc for lighttpd:
    
    git-http-backend may be found at /usr/libexec/git-core/git-http-backend
    
    scope lighttpd config directives for git-http-backend under "^/git"
    
    Note: lighttpd 1.4.51 setenv.add-environment does not add vars with
    empty value. so use "GIT_HTTP_EXPORT_ALL" => "1" (with a value) in
    lighttpd 1.4.51. lighttpd setenv.set-environment does, but was only
    introduced in 1.4.46 lighttpd 1.4.52 setenv.add-environment restores
    prior lighttpd 1.4.50 behavior.
    
    Signed-off-by: Glenn Strauss gstrauss@gluelogic.com
    [gstrauss@gluelogic.com]
    
    [Edited to reflect refined commit. v1 and v2 were originally submitted
    via submitGit]

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-546%2Fgstrauss%2Flighttpd-git-http-backend-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-546/gstrauss/lighttpd-git-http-backend-v1
Pull-Request: https://github.com/git/git/pull/546

 Documentation/git-http-backend.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt
index 558966aa83..9e8d7083be 100644
--- a/Documentation/git-http-backend.txt
+++ b/Documentation/git-http-backend.txt
@@ -191,13 +191,13 @@ ScriptAlias /git/ /var/www/cgi-bin/gitweb.cgi/
 ----------------------------------------------------------------
 
 Lighttpd::
-	Ensure that `mod_cgi`, `mod_alias`, `mod_auth`, `mod_setenv` are
-	loaded, then set `GIT_PROJECT_ROOT` appropriately and redirect
-	all requests to the CGI:
+	Ensure `mod_auth`, `mod_alias`, `mod_cgi`, `mod_setenv` are loaded,
+	then set path to git-http-backend in `alias.url`, redirect all `/git`
+	requests to CGI, and set `GIT_PROJECT_ROOT` path to git project root.
 +
 ----------------------------------------------------------------
-alias.url += ( "/git" => "/usr/lib/git-core/git-http-backend" )
 $HTTP["url"] =~ "^/git" {
+	alias.url += ("/git" => "/usr/libexec/git-core/git-http-backend")
 	cgi.assign = ("" => "")
 	setenv.add-environment = (
 		"GIT_PROJECT_ROOT" => "/var/www/git",

base-commit: 0ad714499976290d9a0229230cbe4efae930b8dc
-- 
gitgitgadget

             reply	other threads:[~2020-02-12  3:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-12  3:52 Glenn Strauss via GitGitGadget [this message]
2020-02-12 11:56 ` [PATCH] update git-http-backend doc for lighttpd Johannes Schindelin
  -- strict thread matches above, loose matches on Subject: below --
2018-10-28  0:16 Glenn Strauss
2018-10-29  3:19 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pull.546.git.git.1581479550353.gitgitgadget@gmail.com \
    --to=gitgitgadget@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gstrauss@gluelogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.