FastCGI

From Resin 3.0

Revision as of 01:25, 29 September 2010 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When you have a backend server like Ruby or PHP which has a FastCGI connection, you can use the <resin:FastCgi> dispatch tag to dispatch to that backend.

Since Resin's FastCgi uses load balancing automatically, you can balance the load across multiple servers.

FastCgi dispatch in resin.xml

The FastCgi is part of Resin's rewrite-dispatch capability.

 <resin xmlns="http://caucho.com/ns/resin">

   <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:FastCgi regexp="^">
           <address>192.168.1.10:7000</address>
           <address>192.168.1.11:7000</address>
         </resin:FastCgi> 

       </web-app>
     </host>
   </cluster>

 </resin>
Personal tools