Forum Discussion
New iRule creation for redirection
Hi Team,
I have following virtual server in my Loadbalancer
URL : http://insurance.xyz.com/LifeInsurance VIP : 10.1.1.1 Pool Member : 10.0.1.1
We are going to take out 10.0.1.1 for Maintenance. So we need to redirect the user request to another server ";
I have written the irule like below:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "insurance.xyz.com" and [HTTP::path] eq "/LifeInsurance" } {
HTTP::redirect "https://newinsurance.xyz.com [HTTP::uri]"
}
}
But the issue is when user try to access the http://insurance.xyz.com/LifeInsurance it will first go to SSO site which is not there in F5 and then reaching the actual site. So this redirection is not happening. Can somebody help me to construct the iRule for this. SSO URL would be: https://sso.xyz.com/nidp/idff/sso?id=commonlogin&sid=0&option=credential&sid=0&target=http%3A%2F%2Finsurance.xyz.com%2FLifeInsurance%2F
4 Replies
- Yann_Desmarest_
Nacreous
Hi,
When you mean, the user first go to the SSO site, you have an APM policy attached to your virtual Server or something else in your irule code that redirect the user to this SSO site ?
If you have APM, you can add the following command to overlap the APM policy : ACCESS::restrict_irule_events disable
Regards
Yann
- Ram_T_S
Altostratus
Hi,
I have only the LTM license on my LB. The redirection is happening on the application end.
Hi,
When you mean, the user first go to the SSO site, you have an APM policy attached to your virtual Server or something else in your irule code that redirect the user to this SSO site ?
If you have APM, you can add the following command to overlap the APM policy : ACCESS::restrict_irule_events disable
Regards
Yann
- Ram_T_S
Altostratus
Hi,
I have only the LTM license on my LB. The redirection is happening on the application end.
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