@matheusbsbs / matheus-bagliano / commits / 604cb211a9
Fork 0

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>

Alan Chandler committed Oct 3, 2006 at 22:48 UTC 604cb211a9b5401b265d1c1ca3d57dad243e7260
1 file changed +7
gitweb/README
+7
@@ -43,6 +43,7 @@ repositories, you can configure apache like this:
43 DocumentRoot /pub/git
44 RewriteEngine on
45 RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI} [L,PT]
46 + SetEnv GITWEB_CONFIG /etc/gitweb.conf
47 </VirtualHost>
48
49 The above configuration expects your public repositories to live under
@@ -51,6 +52,12 @@ both as cloneable GIT URL and as browseable gitweb interface.
52 If you then start your git-daemon with --base-path=/pub/git --export-all
53 then you can even use the git:// URL with exactly the same path.
54
55 +Setting the environment variable GITWEB_CONFIG will tell gitweb to use
56 +the named file (i.e. in this example /etc/gitweb.conf) as a
57 +configuration for gitweb. Perl variables defined in here will
58 +override the defaults given at the head of the gitweb.perl (or
59 +gitweb.cgi). Look at the comments in that file for information on
60 +which variables and what they mean.
61
62
63 Originally written by: