Bug#333908: marked as done (mod_rewrite does not rewrite REQUEST_URI)
Your message dated Sat, 11 Nov 2006 10:10:11 +0100
with message-id <20061111091011.GA14706@mails.so.argh.org>
and subject line That's by design
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: mod_rewrite does not rewrite REQUEST_URI
- From: Eduard Bloch <blade@debian.org>
- Date: Fri, 14 Oct 2005 13:50:13 +0200
- Message-id: <E1EQO4j-0002qk-Fj@debian.localnet>
Package: apache2
Version: 2.0.54-5
Severity: normal
Simple example:
RewriteEngine on
RewriteBase /cgi-bin
RewriteRule ^ - [E=REQUEST_URIX:somestring]
RewriteRule ^ - [E=REQUEST_URI:/real/location]
REQUEST_URIX ends up in the CGI environment, while REQUEST_URI is _not_
replaced. It shows the original content and not the custom one.
Following http://groups.yahoo.com/group/new-httpd/message/55939 that
should work but it just doest't.
Eduard.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages apache2 depends on:
ii apache2-mpm-prefork 2.0.54-5 traditional model for Apache2
apache2 recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: 333908-done@bugs.debian.org
- Subject: Re: That's by design
- From: Andreas Barth <aba@not.so.argh.org>
- Date: Sat, 11 Nov 2006 10:10:11 +0100
- Message-id: <20061111091011.GA14706@mails.so.argh.org>
- In-reply-to: <758E5B94-0F83-4078-AC4E-E896A6D2D018@terpstra.ca>
- References: <758E5B94-0F83-4078-AC4E-E896A6D2D018@terpstra.ca>
* Wesley W. Terpstra (wesley@terpstra.ca) [060406 05:47]:
> Hi. Just wanted to let you know that REQUEST_URI is not supposed to
> be changed on rewrite.
> The purpose of that variable is to provide a CGI with access to the
> original request, before redirects.
> If you need the location of the program after redirect, use SCRIPT_NAME.
> If this isn't your program, report the bug to the author.
I'm closing the report as it seems to be a non-bug but rather a design
decision.
Cheers,
Andi
--
http://home.arcor.de/andreas-barth/
--- End Message ---
Reply to: