This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bugzilla update and schedule for changeover
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc at gcc dot gnu dot org, overseers at gcc dot gnu dot org
- Date: Thu, 27 Mar 2003 08:54:47 +0100 (CET)
- Subject: Re: Bugzilla update and schedule for changeover
- References: <5014EDB0-5FEF-11D7-A004-000393575BCC@dberlin.org>
[ also Cc:ed to overseers ]
On Wed, 26 Mar 2003, Daniel Berlin wrote:
>> Unfortunately, I failed to get that working on gcc.gnu.org; today'
>> certainly not may day concerning web configs. :-(
> When I asked if one can use RedirectMatch + the query string, I was told
> "No the query string is stripped out before any matching takes place.
> Don't try to match it."
<argl>, call that an, hmm, interesting, design. And it seems, that my
problems yesterday were due to a different Apache "feature".
Anyway, after a bit of sleep, I managed to make it work with the
following, which is now active on gcc.gnu.org:
# Rewrite old GNATS URLs to Bugzilla.
RewriteEngine on
RewriteLog logs/rewrite_log
RewriteLogLevel 0
RewriteCond %{QUERY_STRING} .*cmd=view.*pr=([0-9]+)
RewriteRule cgi-bin/ggnatsweb.pl.* /bugzilla/show_bug.cgi?id=%1
All that's needed to put it into production mode is a single change above:
ggnatsweb.pl -> gnatsweb.pl
Gerald
PS: Sorry for the dozens of restarts of httpd in the last 12 hours. :-o
--
Gerald "Jerry" pfeifer at dbai dot tuwien dot ac dot at http://www.pfeifer.com/gerald/