Skip to content

Commit

Permalink
Update the gitweb/README file to include setting the GITWEB_CONFIG en…
Browse files Browse the repository at this point in the history
…vironment

Signed-off-by: Alan Chandler <alan@chandlerfamily.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Alan Chandler authored and Junio C Hamano committed Oct 4, 2006
1 parent 128eead commit 604cb21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gitweb/README
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 604cb21

Please sign in to comment.