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 2006/12/08 15:14:48 UTC
DO NOT REPLY [Bug 41137] New: - Apache2.2 mod_proxy do not support wildcard or regular expr
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41137
Summary: Apache2.2 mod_proxy do not support wildcard or regular
expr
Product: Apache httpd-2
Version: 2.2-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P4
Component: mod_proxy
AssignedTo: bugs@httpd.apache.org
ReportedBy: zealot0630@gmail.com
I want to forward all jsp file to a tomcat server use mod_proxy_ajp
but proxy do not support regular expression or wildcast
for example:
<Location ~ ^/.*\.jsp$>
ProxyPass ajp://tomcat/
</Location>
In alias_match function in mod_proxy can not handle regx expr, and it will
return false.
I think it is better to let Location or LocationMatch to do the check path work,
and remove alias_match function.
Let Proxy* command only accept one argument which is real path.
ex:
change
ProxyPass /foo http://example.com/bar
into
<Location /foo>
ProxyPass http://example.com/bar
</Location>
Then save all mod_proxy conf in per_dir_config, but not module_config like
mod_authz_host.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41137] - Apache2.2 mod_proxy do not support wildcard or regular expr
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41137
nick@webthing.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From nick@webthing.com 2007-09-10 22:31 -------
This feature is now supported.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41137] - Apache2.2 mod_proxy do not support wildcard or regular expr
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41137
rpluem@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
------- Additional Comments From rpluem@apache.org 2006-12-08 13:13 -------
I mark this as an enhancement, because this can be easily done with mod_rewrite:
RewriteRule ^(/.*\.jsp)$ ajp://tomcat/$1 [P,L]
does the trick. If you want to use persistent connections you currently have to
use the following workaround:
RewriteRule ^(/.*\.jsp$) balancer://dummy/$1 [P,L]
<Proxy balancer://dummy/>
BalancerMember ajp://tomcat/
</Proxy>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org