Forum Discussion
VIP redirection
- Jan 29, 2016
This can be done via iRule or Policy (if you are running v11.4+). Personally, I would go with the policy, as it's easier to interpret for those newer to the F5 platform.
The below examples assumes your pool is named my_pool and you have a member defined with IP address 1.2.3.4 and port 80.
iRule
Policywhen HTTP_REQUEST { if { [HTTP::path] starts_with "/xyz" } { pool my_pool member 1.2.3.4 80 } }
ltm policy single_member_xyz { controls { forwarding } requires { http } rules { xyz { actions { 0 { forward select member 1.2.3.4:80 } } conditions { 0 { http-uri path starts-with values { /xyz } } } ordinal 1 } } strategy first-match }
This can be done via iRule or Policy (if you are running v11.4+). Personally, I would go with the policy, as it's easier to interpret for those newer to the F5 platform.
The below examples assumes your pool is named my_pool and you have a member defined with IP address 1.2.3.4 and port 80.
iRulewhen HTTP_REQUEST {
if { [HTTP::path] starts_with "/xyz" } {
pool my_pool member 1.2.3.4 80
}
}
Policy
ltm policy single_member_xyz {
controls { forwarding }
requires { http }
rules {
xyz {
actions {
0 {
forward
select
member 1.2.3.4:80
}
}
conditions {
0 {
http-uri
path
starts-with
values { /xyz }
}
}
ordinal 1
}
}
strategy first-match
}
- Anuj_Chaudhary_Jan 29, 2016Nimbostratusthanks we have 10.6 version...
- Anuj_Chaudhary_Jan 29, 2016Nimbostratuswe have https url then there will be https in above irule and policy..
- Theo_12742Jan 29, 2016CirrusIt makes no difference whether it's http or https, but this does require the http profile (which means SSL offloading for your https VIP).
- Anuj_Chaudhary_Feb 01, 2016Nimbostratusthank you.......
- Anuj_Chaudhary_Feb 11, 2016NimbostratusCan we add more text in above irule ? https://uatservices.goindigo.in/PassengerManifest https://uatservices.goindigo.in/RevenueExtraction/ https://uatservices.goindigo.in/IflyTraining/ https://uatservices.goindigo.in/AgentPortal/ https://uatservices.goindigo.in/AmountReconcilation/ https://uatservices.goindigo.in/AuditPortal/pages/frmLogin.aspx https://uatservices.goindigo.in/HR-Exams/ https://uatservices.goindigo.in/IndigoCreditAccount/ https://uatservices.goindigo.in/LegalTracker/ https://uatservices.goindigo.in/FinApp/ https://uatservices.goindigo.in/WelcomeSMS/
- MOHIT_125417Feb 22, 2016AltostratusYes, Anuj you can add more URIs, for the same you need use switch global
Recent Discussions
Related Content
* 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