Forum Discussion
Samir
Jun 07, 2020MVP
If URI is place is fix then try to use starts_with function to achieve goal.
Customize below irule based on your requirements. This just an Example
Option 1:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/BravaServer" } {
HTTP::redirect "http://www.abc.com:9082/"
}
}
Option 2:
when HTTP_REQUEST {
if { [HTTP::uri] contains "BravaServer" } {
HTTP::redirect "http://www.abc.com:9082/"
}
}
Thanks
- T_SrinivasJun 07, 2020Cirrus
Thank you Samir. Option 1 seems to be better one for me. Can we have pool instead of VIP.
- when HTTP_REQUEST {
- if { [HTTP::uri] starts_with "/BravaServer" } {
- pool newpool_9080
- }
- }
This pool newpool_9080 is from a different VIP on the same F5.