update git-http-backend doc for lighttpd
diff mbox series

Message ID pull.546.git.git.1581479550353.gitgitgadget@gmail.com
State New
Headers show
Series
  • update git-http-backend doc for lighttpd
Related show

Commit Message

Derrick Stolee via GitGitGadget Feb. 12, 2020, 3:52 a.m. UTC
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(-)


base-commit: 0ad714499976290d9a0229230cbe4efae930b8dc

Comments

Johannes Schindelin Feb. 12, 2020, 11:56 a.m. UTC | #1
Hi,

On Wed, 12 Feb 2020, Glenn Strauss via GitGitGadget wrote:

>     [Edited to reflect refined commit. v1 and v2 were originally submitted
>     via submitGit]

For the record: I think only v1 was submitted via submitGit so far:
https://public-inbox.org/git/01020166b80743cd-0b220d55-a283-456b-a3c3-bdea8aafed8a-000000@eu-west-1.amazonses.com/

Ciao,
Johannes

Patch
diff mbox series

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",