Forum Discussion
T_Srinivas
Cirrus
Jun 07, 2020Can we have iRule for non-http requests?
Can we have iRule for non-http requests? Lets say, my VIP listens on port 9080
Samir
MVP
Jun 07, 2020If 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, 2020
Cirrus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects