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: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, gcc at gcc dot gnu dot org
- Date: Thu, 27 Mar 2003 01:32:31 +0100 (CET)
- Subject: Re: Bugzilla update and schedule for changeover
- References: <F49BB450-5FDD-11D7-A93F-000393575BCC@dberlin.org>
On Wed, 26 Mar 2003, Daniel Berlin wrote:
>>> Here's a tested rewrite rule:
>>> RewriteCond %{QUERY_STRING} .*cmd=view.*pr=(\d+)
>>> RewriteRule ^.*gnatsweb.pl.* /bugzilla/show_bug.cgi?id=%1
>> ...and I was just trying the above (changing "cmd" to "mdc" to avoid
>> current gnatsweb breaking), but there's some problem. Let me
>> investigate.
> It works okay on dberlin.org, but i'm apache 2.0.
>
> Try http://dberlin.org/cgi-bin/gnatsweb.pl?cmd=view&pr=500
> For instance.
>
> If you guys have virtual hosts set up, it needs to be *in* the virtual
> host config for gcc. Or at least, for apache 2.0, it wasn't working at
> all outside of the VirtualHost i have setup.
Yes, I had done all that.
Anyway, Rewrite* is not what we really want here; rather, we ought to
use RedirectMatch.
Unfortunately, I failed to get that working on gcc.gnu.org; today'
certainly not may day concerning web configs. :-(
Any idea what's wrong about the following (ignore the too liberal pattern
for the PR number for now)?
RedirectMatch permanent ^/cgi-bin/gnatsweb.*view.*pr=.*$ http://dberlin.org/bugzilla/show_bug.cgi?id=$3
Gerald
--
Gerald "Jerry" pfeifer at dbai dot tuwien dot ac dot at http://www.pfeifer.com/gerald/