Forum Discussion
kazeem_yusuf1
Sep 19, 2017Nimbostratus
IRULES FOR REDIRECTING TRAFFIC BASED ON DYNAMIC CONTENT FOR APPLICATION
I need to redirect traffic for an application, on 10.184.1.191 (VIP) to any of the two servers ,10.184.1.71:9443, or 10.184.1.49:9443. However, the search string is based on paths.
HTTP:80 and ...
Jad_Tabbara__J1
Sep 19, 2017Cirrostratus
Hello Kazeem,
Try the following irule on the VS_HTTPS
when HTTP_REQUEST {
set path [string tolower [HTTP::path]]
switch -glob $path {
"/authenticationendpoint/*" -
"/oauth2/*" -
"/services/*" -
"/wso2/*" {
pool pool_name
}
default {
log local0. "Fallback for path: $path -- To be defined"
}
}
}
Could you clarify if on VS_HTTP you only want to redirect all traffic to HTTPs or only paths that you specified ?
Regards
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