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

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

Hi

Yes, i want that traffic to be routed to one Public VIP.

Thanks