Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Chandler <alan@chandlerfamily.org.uk>2006-10-04 01:48:46 +0400
committerJunio C Hamano <junkio@cox.net>2006-10-04 10:58:38 +0400
commit604cb211a9b5401b265d1c1ca3d57dad243e7260 (patch)
tree212edb7513e3aeb9d5752c9200e955d927319480 /gitweb/README
parent128eead19821ba18e2912ebf30e5621d08735e79 (diff)
Update the gitweb/README file to include setting the GITWEB_CONFIG environment
Signed-off-by: Alan Chandler <alan@chandlerfamily.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb/README')
-rw-r--r--gitweb/README7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitweb/README b/gitweb/README
index 61c7ab5d4b..78e6fc05f3 100644
--- a/gitweb/README
+++ b/gitweb/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]
+ 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 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.
+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: