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

[PATCH] Update the gitweb/README file to include setting the GITWEB_CONFIG environment

From
Alan Chandler <alan@chandlerfamily.org.uk>
Date
Oct 3, 2006, 21:48 UTC
Message-ID
<11599121262709-git-send-email-alan@chandlerfamily.org.uk>
From: Alan Chandler <alan@chandlerfamily.org.uk>
Signed-off-by: Alan Chandler <alan@chandlerfamily.org.uk>
---
 gitweb/README |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/gitweb/README b/gitweb/README
index 61c7ab5..099cfae 100644
--- a/gitweb/README
+++ b/gitweb/README
@@ -43,6 +43,7 @@ repositories, you can configure apache l
     DocumentRoot /pub/git
     RewriteEngine on
     RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]
+    SetEnv	GITWEB_CONFIG	/etc/gitweb.conf
 </VirtualHost>
 
 The above configuration expects your public repositories to live under
@@ -51,6 +52,12 @@ both as cloneable GIT URL and as browsea
 If you then start your git-daemon with --base-path=/pub/git --export-all
 then you can even use the git:// URL with exactly the same path.
 
+Setting the environment variable GITWEB_CONFIG will tell gitweb to use
+the named file (ie in this example /etc/gitweb.conf) as a
+configuration for gitweb.  Perl variables defined in here will
+override the defaults given at the head of the gitweb.perl (or
+gitweb.cgi).  Look at the comments in that file for information on
+which variables and what they mean.
 
 
 Originally written by:
-- 
1.4.2.1
Message 1 of 1 in “Update the gitweb/README file to include setting the GITWEB_CONFIG environment”
  1. Update the gitweb/README file to include setting the GITWEB_CONFIG environmentAlan Chandler, Oct 3, 2006

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.