Mantis - Resin
Viewing Issue Advanced Details
3510 minor always 05-13-09 06:55 06-16-09 18:47
ferg  
ferg  
urgent  
closed  
fixed  
none    
none 4.0.1  
0003510: rewrite with multiple load-balance rules
(rep by Daniel Wigenfors)


What i'm trying to to is this, one resin-instance running as a webserver only, loadbalancing to two or more resins behind it.

On the webserver, I'm trying to rewrite requests from users, and then send on the request to the resin app-servers.

I've configured a host-config on the webserver with the following, I'm trying with both rewrite and forward:

  <web-app-default>

...some rewrites...

<rewrite-dispatch>
  <rewrite regexp="^/old.jsp" replacement="index.jsp"/>
</rewrite-dispatch>

<rewrite-dispatch>
  <forward regexp="^/old2.jsp" target="index.jsp"/>
</rewrite-dispatch>


...some more rewrites...and then the load-balancing


    <rewrite-dispatch>
       <load-balance regexp="" cluster="a"/>
     </rewrite-dispatch>



  </web-app-default>

Notes
(0004076)
ferg   
06-16-09 18:47   
server/1kq-

Unfortunately, this can only be fixed in 4.0.1. The rewrite-dispatch for 3.1 had been refactored in a way that disabled the actual <rewrite> tag as used in this bug report, and changes to enable it in 3.1.x are bigger than we'd want to change for 4.0.x.