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





------- Additional Comments From [EMAIL PROTECTED]  2006-03-08 19:36 -------
Thx your for your reply.  A couple of things:

1. I could not find, but does not mean it does not exist, documentation about
proxy and REs.  But, if it does not work, so be it.

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.

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,
nothing works.  So I am really confused now.

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.

4.  Since my original defect report,t in all honestly has been resolved, I
understand if you want to close this ticket.

Here is my new snippet I used:

<IfDefine rewrite>
  RewriteEngine On
 
  <Proxy balancer://myCluster>
    BalancerMember ajp://10.0.0.152:8009 loadfactor=100 route=152
    BalancerMember ajp://10.0.0.153:8009 loadfactor=100 route=153
    ProxySet stickysession=JSESSIONID
    Order Deny,Allow
    Allow from all
  </Proxy>

  RewriteRule (^/myproject/.+\.(jsp|html|form))  balancer://myCluster$0
  #RewriteRule (^/myproject/.+\.(jsp|html|form)) balancer://myCluster$0 [p]

  ProxyPassReverse /myproject http://10.0.0.152:8080/myproject
  ProxyPassReverse /myproject http://10.0.0.153:8080/myproject

  <Location /balancer-manager>
    SetHandler balancer-manager
    Order Deny,Allow
    Allow from all
  </Location>

</IfDefine>

-- 
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]

Reply via email to