From: Mike Hommey Date: Sat, 07 Jun 2008 10:06:27 GMT Subject: Re: [PATCH] Fix missing "HEAD" in the RewriteRule Message-ID: <20080607100627.GA990@glandium.org> In-Reply-To: <1212823166-25098-1-git-send-email-ask@develooper.com> On Sat, Jun 07, 2008 at 12:19:26AM -0700, Ask Bjørn Hansen wrote: > Also add a few more hints for how to setup and configure gitweb as described > --- > gitweb/README | 18 ++++++++++++++---- > 1 files changed, 14 insertions(+), 4 deletions(-) > > The important change is to add HEAD into the regexp, everything else is > optional... > > diff --git a/gitweb/README b/gitweb/README > index 8f7ea36..b96834b 100644 > --- a/gitweb/README > +++ b/gitweb/README > @@ -255,12 +255,15 @@ Webserver configuration > If you want to have one URL for both gitweb and your http:// > repositories, you can configure apache like this: > > - > - ServerName git.domain.org > + > + ServerName git.example.org > DocumentRoot /pub/git > - RewriteEngine on > - RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI} [L,PT] > SetEnv GITWEB_CONFIG /etc/gitweb.conf > + RewriteEngine on > + # make the front page an internal rewrite to the gitweb script > + RewriteEngine ^/$ /cgi-bin/gitweb.cgi You meant RewriteRule, right ? Mike