You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/10/07 06:37:39 UTC
DO NOT REPLY [Bug 51987] New: RewriteRule doesn't work correctly
with apache 2.3.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51987
Bug #: 51987
Summary: RewriteRule doesn't work correctly with apache 2.3.
Product: Apache httpd-2
Version: 2.3.12-beta
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: gits@hotmail.co.jp
Classification: Unclassified
Hello.
I have an Apache with the following configuration.
ServerName hogehoge
<VirtualHost *:80>
<LocationMatch "/service_a/*">
RewriteEngine on
RewriteRule /service_a/(.*) http://192.168.56.11/$1 [P]
</LocationMatch>
<LocationMatch "/service_b/*">
RewriteEngine on
RewriteRule /service_b/(.*) http://192.168.56.12/$1 [P]
</LocationMatch>
</VirtualHost>
Thus the request URL shuold be rewrite:
http://hogehoge/service_a/foo1.html ==> http://192.168.56.11/foo1.html
http://hogehoge/service_b/foo2.html ==> http://192.168.56.12/foo2.html
However, it doesn't work correctly.
According to packet capture, the following accesses have sometimes occurred.
http://hogehoge/service_a/foo1.html ==> http://192.168.56.12/foo1.html
http://hogehoge/service_b/foo2.html ==> http://192.168.56.11/foo2.html
Thanks you.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51987] RewriteRule doesn't work correctly with
apache 2.3.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51987
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Eric Covener <co...@gmail.com> 2011-10-07 11:46:03 UTC ---
is your config paraphrased or verbatim? your locationmatch has what seems to be
an erroneous regex, and is unnecessary given the rewriterule content.
Also:
"Although rewrite rules are syntactically permitted in <Location> and <Files>
sections, this should never be necessary and is unsupported."
You'll have to capture your scenario in with trace level logging of mod_rewrite
to make a convincing case for a bug.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org