提交 604cb211 编写于 作者: A Alan Chandler 提交者: Junio C Hamano

Update the gitweb/README file to include setting the GITWEB_CONFIG environment

Signed-off-by: NAlan Chandler <alan@chandlerfamily.org.uk>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 128eead1
...@@ -43,6 +43,7 @@ repositories, you can configure apache like this: ...@@ -43,6 +43,7 @@ repositories, you can configure apache like this:
DocumentRoot /pub/git DocumentRoot /pub/git
RewriteEngine on RewriteEngine on
RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI} [L,PT] RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI} [L,PT]
SetEnv GITWEB_CONFIG /etc/gitweb.conf
</VirtualHost> </VirtualHost>
The above configuration expects your public repositories to live under The above configuration expects your public repositories to live under
...@@ -51,6 +52,12 @@ both as cloneable GIT URL and as browseable gitweb interface. ...@@ -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 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. 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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册