Forum Discussion

Sachin_M_258695's avatar
Sachin_M_258695
Icon for Nimbostratus rankNimbostratus
Aug 29, 2016

Need an IRule

Hi,

 

I need an urgent irule for the requirement.

 

If uri contains xyz... It has to route to one public VIP

 

if www.abc.com/xyz* It has to go to 1.1.1.1

 

Please provide the complete IRule

 

Kindly help

 

thanks Sachin M

 

4 Replies

  • Please explain your usecase in a more detailed fashion to (at least) enable us to provide a solution that meets your requirements.

     

    If uri contains xyz... It has to route to one public VIP

     

    What means "route to one public VIP"?

     

    if * It has to go to 1.1.1.1

     

    The previous rule and this rule contains both xyz?

     

    Cheers, Kai

     

  • I'm under the impression VIP and pool are being used interchangeably here. Curious for clarification as well.

     

  • when HTTP_REQUEST {
    if { ([HTTP::host] eq "www.abc.com") and ([string tolower [HTTP::uri]] starts_with "/xyz" } {
    virtual VS_1
    }
    }
    

    Reference: Virtual Server