]> Lady’s Gitweb - Gitweb/commitdiff
Update the gitweb/README file to include setting the GITWEB_CONFIG environment
authorAlan Chandler <redacted>
Tue, 3 Oct 2006 21:48:46 +0000 (22:48 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
Signed-off-by: Alan Chandler <redacted>
Signed-off-by: Junio C Hamano <redacted>
README

diff --git a/README b/README
index e012c78e09cdf29db03d7ea82030f46f3385698f6a0a4c7de5650c62cc8e690d..85ac23819ef34c7f0b7b6f0372a2930d3c2aa3e50432dbf76d04675cfd4b30d4 100644 (file)
--- a/README
+++ b/README
@@ -43,6 +43,7 @@ repositories, you can configure apache like this:
     DocumentRoot /pub/git
     RewriteEngine on
     RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]
     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
 </VirtualHost>
 
 The above configuration expects your public repositories to live under
@@ -51,6 +52,12 @@ both as cloneable GIT URL and as browseable gitweb interface.
 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.
 
 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 (i.e. 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:
 
 
 Originally written by:
This page took 0.262113 seconds and 4 git commands to generate.