crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs

t6.conf (1147B)


      1 service test {
      2     port 10001;
      3     type http;
      4     bindto any;
      5     dispatchmode bysize;
      6     connectiontimeout 600;
      7     verbosity on;
      8 
      9     backend a {
     10         server localhost;
     11         port 10000;
     12         weight 2;
     13         decay 5;
     14         stickycookie BalancerID=Backend_A;
     15 	addclientheader "Set-Cookie: BalancerID=Backend_A; Path=/";
     16 	setclientheader "Host: undisclosed-webserver";
     17 	setclientheader "X-Timestamp: %t";
     18         setserverheader "X-Real-IP: %r";
     19     }
     20 
     21     backend b {
     22         server localhost;
     23         port 10000;
     24         weight 2;
     25         decay 5;
     26         stickycookie BalancerID=Backend_B;
     27 	setclientheader "Host: undisclosed-webserver";
     28         addclientheader "Set-Cookie: BalancerID=Backend_B; Path=/";
     29 	setclientheader "X-Timestamp: %t";
     30         setserverheader "X-Real-IP: %r";
     31     }
     32 
     33     backend c {
     34         server localhost;
     35         port 10000;
     36         weight 3;
     37         decay 5;
     38         stickycookie BalancerID=Backend_C;
     39 	setclientheader "Host: undisclosed-webserver";
     40         addclientheader "Set-Cookie: BalancerID=Backend_C; Path=/";
     41 	setclientheader "X-Timestamp: %t";
     42         setserverheader "X-Real-IP: %r";
     43     }
     44 }