{"thread":{"id":"5804","subject":"[PATCH] Update the gitweb/README file to include setting the GITWEB_CONFIG environment","startedAt":"2006-10-03T21:48:46Z","lastAt":"2006-10-03T21:48:46Z","messageCount":1,"participants":["Alan Chandler"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"28192","messageId":"11599121262709-git-send-email-alan@chandlerfamily.org.uk","threadId":"5804","inReplyTo":null,"subject":"[PATCH] Update the gitweb/README file to include setting the GITWEB_CONFIG environment","fromName":"Alan Chandler","fromEmail":"alan@chandlerfamily.org.uk","sentAt":"2006-10-03T21:48:46Z","receivedAt":"2006-10-03T21:48:46Z","isPatch":true,"sender":{"key":"alan@chandlerfamily.org.uk","avatar":"https://gravatar.com/avatar/1862247e5ea8eac114c842f9dc3a5db6253754e24ef7171757cf97eedce48b8c?d=mp&s=160"},"body":"From: Alan Chandler <alan@chandlerfamily.org.uk>\n\nSigned-off-by: Alan Chandler <alan@chandlerfamily.org.uk>\n---\n gitweb/README |    7 +++++++\n 1 files changed, 7 insertions(+), 0 deletions(-)\n\ndiff --git a/gitweb/README b/gitweb/README\nindex 61c7ab5..099cfae 100644\n--- a/gitweb/README\n+++ b/gitweb/README\n@@ -43,6 +43,7 @@ repositories, you can configure apache l\n     DocumentRoot /pub/git\n     RewriteEngine on\n     RewriteRule ^/(.*\\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]\n+    SetEnv\tGITWEB_CONFIG\t/etc/gitweb.conf\n </VirtualHost>\n \n The above configuration expects your public repositories to live under\n@@ -51,6 +52,12 @@ both as cloneable GIT URL and as browsea\n If you then start your git-daemon with --base-path=/pub/git --export-all\n then you can even use the git:// URL with exactly the same path.\n \n+Setting the environment variable GITWEB_CONFIG will tell gitweb to use\n+the named file (ie in this example /etc/gitweb.conf) as a\n+configuration for gitweb.  Perl variables defined in here will\n+override the defaults given at the head of the gitweb.perl (or\n+gitweb.cgi).  Look at the comments in that file for information on\n+which variables and what they mean.\n \n \n Originally written by:\n-- \n1.4.2.1\n"}]}