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=38864>. 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=38864 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO ------- Additional Comments From [EMAIL PROTECTED] 2006-03-08 20:37 ------- (In reply to comment #4) > > 2. Not sure why LocationMatch and proxy work to tightly. Here is my simple > view of how I thought it should work: > if the incoming URL matches the grammar supplied by the RE in LocationMatch > do the work (in this case proxy the request) > I do not understand why proxy needs to know about RE as, IMHO, only > LocationMatch needs to do the patching. That is due to how the internal processing works. I admit that this is not logical from a users perspective view. Basicly a ProxyPass inside a Location or LocationMatch container is transformed to ProxyPass <string of Locationcontainer> <proxytarget> during the parsing of the configuration. So in your example this gets transformed to ProxyPass ^/myproject/.+\.(jsp|frm)$ balancer://myCluster/myproject Stickysession=JSESSIONID As ProxyPass does not know anything about RE it tries to match the URL plain against ^/myproject/.+\.(jsp|frm)$ which cannot work for obvious reasons. > > 3. I really appreciate an alternate solution. I have tried that and it does > not > work (as I expect). If I take what you supplied I get tomcat serving up > everything (jsp, gif, etc). So I went and read up on RewriteRule and found out > that I should use the [p] token at the end of the "rule". When I tried this, Ah, sorry a copy and paste error from my side. It should have been RewriteRule (^/myproject/.+\.(jsp|frm)$) balancer://myCluster$1 [P] Astonishing that this worked at all without the [P] flag. > nothing works. So I am really confused now. It should work. I tested it in my environment. You have an error in your config (see below) > > 4. I do not understand why the ProxyPassReverse is written in that manor. > Why > does it use http as the protocol and why must I specify every member? Should > I > not be able to use balancer as the protocol. No. ProxyPassReverse works like a lookup table. It checks possible Location headers of the HTTP responses from the backend and transforms them into the correct ones (by using the lookup table) to make redirects work. But the backend servers do know nothing about the balancer scheme. So they put in their local name (http://127.0.0.1:8080 and http://127.0.0.1:8081 in your case) in their Location headers. > > RewriteRule (^/myproject/.+\.(jsp|html|form)) balancer://myCluster$0 > #RewriteRule (^/myproject/.+\.(jsp|html|form)) balancer://myCluster$0 [p] The error is $0 at the end. It must be $1. Please use the line with the [P] flag at the end. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
