git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix missing "HEAD" in the RewriteRule

From
Mike Hommey <mh@glandium.org>
Date
Jun 7, 2008, 10:06 UTC
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:
Show 27 quoted lines
> 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:
>  
> -<VirtualHost www:80>
> -    ServerName git.domain.org
> +<VirtualHost *:80>
> +    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
Previous: Jakub NarebskiNext: Junio C Hamano
Message 3 of 4 in “Fix missing "HEAD" in the RewriteRule”
  1. Fix missing "HEAD" in the RewriteRuleAsk Bjørn Hansen, Jun 7, 2008
  2. Jakub NarebskiJun 7, 2008
  3. Mike HommeyJun 7, 2008
  4. Junio C HamanoJun 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.