Forum Discussion

Juanma_47808's avatar
Juanma_47808
Icon for Nimbostratus rankNimbostratus
Jan 27, 2009

How to add an irule in a performance layer 4 virtual server

 

Hello,

 

 

I have got a performance layer 4 virtual server to offer a https service. I would need to add an irule when load balancing failed (no pool members available). I have tried:

 

 

when LB_FAILED {

 

HTTP::respond 200 content "Apology Page

 

.

 

.

 

.

 

}

 

 

but LTM shows an error because I am not using an http profile (in layer 4 it does not appear http as a protocol as option when configuring the virtual server).

 

 

How can I write an irule to show an error page in this situation? Is that possible?

 

 

 

Thanks a lot for your help

 

 

Juanma

3 Replies

  • Hi

     

    Performance Layer 4 virtuals do not support iRules based on HTTP. With a HTTP Profile you parse HTTP Traffic and can use HTTP specific Responses

     

     

    You have to switch to a Standard Virtual and apply a http Profile to it.

     

    Sorry

     

     

    Wiesmann

     

  •  

    Hello,

     

     

    I configured a performance layer 4 because I had problems in spliting https connections in our https corporate application. I will try to pass to a standard virtual server.

     

     

    Thanks a lot for your help