Re: [PATCH] http/remote-curl: coddle picky servers
- From
Mike Hommey <mh@glandium.org>
- Date
- Jan 21, 2010, 16:34 UTC
- Message-ID
- <20100121163425.GB31659@glandium.org>
- In-Reply-To
- <20100121162402.GD19078@spearce.org>
On Thu, Jan 21, 2010 at 08:24:02AM -0800, Shawn O. Pearce wrote:
Show 20 quoted lines
> Tay Ray Chuan <rctay89@gmail.com> wrote:
> > On Fri, Jan 22, 2010 at 12:07 AM, Mike Hommey <mh@glandium.org> wrote:
> > > Look closely at the start of the requested URL: /gitweb.cgi...
> > > It comes from this rule:
> > >
> > > RewriteCond %{QUERY_STRING} ^(.+)$
> > > RewriteRule ^/(.*)$ /gitweb.cgi$1 [L,PT]
> > >
> > > which is global to the virtual host.
> > >
> > > Anyways, while git.debian.org can certainly be fixed for that, other
> > > servers may want to do some different things with urls with parameters.
> >
> > heh, I was suspecting some URL rewriting was going on.
> >
> > Is this an issue that should be fixed in gitweb?
>
> I don't see why it should be. gitweb isn't a service CGI. I find
> it odd that someone would configure their website to route anything
> with a query string into gitweb. WTF?There was a good reason for it, but the implementation was too broad: The main gitweb list (http://git.debian.org/) is made statically, because it is too long for gitweb to create it in a timely fashion.
So while the main page is made to be a static file, when the request has a query string, which means it's not the main gitweb list, the cgi is used.
Except this rule was also used for unrelated urls.
But as I said in my reply to Tay Ray Chuan, it's fixed.
Mike