{"thread":{"id":"52785","subject":"[PATCH] update git-http-backend doc for lighttpd","startedAt":"2020-02-12T03:52:36Z","lastAt":"2020-02-12T11:57:13Z","messageCount":2,"participants":["Glenn Strauss via GitGitGadget","Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"391590","messageId":"pull.546.git.git.1581479550353.gitgitgadget@gmail.com","threadId":"52785","inReplyTo":null,"subject":"[PATCH] update git-http-backend doc for lighttpd","fromName":"Glenn Strauss via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2020-02-12T03:52:30Z","receivedAt":"2020-02-12T03:52:36Z","isPatch":true,"sender":{"key":"gstrauss@gluelogic.com","avatar":null},"body":"From: Glenn Strauss <gstrauss@gluelogic.com>\n\ngit-http-backend may be found at /usr/libexec/git-core/git-http-backend\n\nscope lighttpd config directives for git-http-backend under \"^/git\"\n\nNote:\nlighttpd 1.4.51 setenv.add-environment does not add vars with empty value.\nso use \"GIT_HTTP_EXPORT_ALL\" => \"1\" (with a value) in lighttpd 1.4.51.\nlighttpd setenv.set-environment does, but was only introduced in 1.4.46\nlighttpd 1.4.52 setenv.add-environment restores prior lighttpd 1.4.50\nbehavior.\n\nSigned-off-by: Glenn Strauss <gstrauss@gluelogic.com>\n---\n    update git-http-backend doc for lighttpd\n    \n     update git-http-backend doc for lighttpd:\n    \n    git-http-backend may be found at /usr/libexec/git-core/git-http-backend\n    \n    scope lighttpd config directives for git-http-backend under \"^/git\"\n    \n    Note: lighttpd 1.4.51 setenv.add-environment does not add vars with\n    empty value. so use \"GIT_HTTP_EXPORT_ALL\" => \"1\" (with a value) in\n    lighttpd 1.4.51. lighttpd setenv.set-environment does, but was only\n    introduced in 1.4.46 lighttpd 1.4.52 setenv.add-environment restores\n    prior lighttpd 1.4.50 behavior.\n    \n    Signed-off-by: Glenn Strauss gstrauss@gluelogic.com\n    [gstrauss@gluelogic.com]\n    \n    [Edited to reflect refined commit. v1 and v2 were originally submitted\n    via submitGit]\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-546%2Fgstrauss%2Flighttpd-git-http-backend-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-546/gstrauss/lighttpd-git-http-backend-v1\nPull-Request: https://github.com/git/git/pull/546\n\n Documentation/git-http-backend.txt | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt\nindex 558966aa83..9e8d7083be 100644\n--- a/Documentation/git-http-backend.txt\n+++ b/Documentation/git-http-backend.txt\n@@ -191,13 +191,13 @@ ScriptAlias /git/ /var/www/cgi-bin/gitweb.cgi/\n ----------------------------------------------------------------\n \n Lighttpd::\n-\tEnsure that `mod_cgi`, `mod_alias`, `mod_auth`, `mod_setenv` are\n-\tloaded, then set `GIT_PROJECT_ROOT` appropriately and redirect\n-\tall requests to the CGI:\n+\tEnsure `mod_auth`, `mod_alias`, `mod_cgi`, `mod_setenv` are loaded,\n+\tthen set path to git-http-backend in `alias.url`, redirect all `/git`\n+\trequests to CGI, and set `GIT_PROJECT_ROOT` path to git project root.\n +\n ----------------------------------------------------------------\n-alias.url += ( \"/git\" => \"/usr/lib/git-core/git-http-backend\" )\n $HTTP[\"url\"] =~ \"^/git\" {\n+\talias.url += (\"/git\" => \"/usr/libexec/git-core/git-http-backend\")\n \tcgi.assign = (\"\" => \"\")\n \tsetenv.add-environment = (\n \t\t\"GIT_PROJECT_ROOT\" => \"/var/www/git\",\n\nbase-commit: 0ad714499976290d9a0229230cbe4efae930b8dc\n-- \ngitgitgadget\n"},{"id":"391601","messageId":"nycvar.QRO.7.76.6.2002121255030.3718@tvgsbejvaqbjf.bet","threadId":"52785","inReplyTo":"pull.546.git.git.1581479550353.gitgitgadget@gmail.com","subject":"Re: [PATCH] update git-http-backend doc for lighttpd","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2020-02-12T11:56:59Z","receivedAt":"2020-02-12T11:57:13Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 12 Feb 2020, Glenn Strauss via GitGitGadget wrote:\n\n>     [Edited to reflect refined commit. v1 and v2 were originally submitted\n>     via submitGit]\n\nFor the record: I think only v1 was submitted via submitGit so far:\nhttps://public-inbox.org/git/01020166b80743cd-0b220d55-a283-456b-a3c3-bdea8aafed8a-000000@eu-west-1.amazonses.com/\n\nCiao,\nJohannes\n"}]}