HttpProxy
From Resin 3.0
When you have a backend service that cannot be run inside Resin's Java container, a server like Ruby or IIS or even Apache, you can use Resin's HttpProxy dispatch to load balance requests to that backend.
Since Resin's HttpProxy uses load balancing automatically, you can balance the load across multiple servers.
- serves HTTP from port 80
- changes user to "resin" from root
- enables proxy caching
- HttpProxy load balances to 192.168.1.10:8080 and 192.168.1.10:8080
HttpProxy dispatch in resin.xml
The HttpProxy is part of Resin's rewrite-dispatch capability.
<resin xmlns="http://caucho.com/ns/resin"> <log-handler name="" level="all" path="stdout:" timestamp="[%y-%m-%d %H:%M:%S.%s] {%{thread}} "/> <cluster id=""> <resin:import path="${__DIR__}/app-default.xml"/> <server id=""> <http port="80"/> <user-name>resin</user-name> <group-name>resin</group-name> </server> <proxy-cache/> <host id=""> <web-app id=""> <resin:HttpProxy> <address>192.168.1.10:8080</address> <address>192.168.1.11:8080</address> </resin:HttpProxy> </web-app> </host> </cluster> </resin>