Forum Discussion
chocokoala
Altostratus
May 31, 2022iRule Recommendation
Hi, I need help for an irule to be used for this scenario (this is a outlook/owa/autodiscover setup) we currently have a setup/irule that if the client type webmail.abc.com/owa it goes to the owa p...
Amine_Kadimi
MVP
May 31, 2022A simple redirection irule should do the redirection :
when HTTP_REQUEST {
if { [HTTP::host] eq "webmail.abc.com" } {
HTTP::redirect "https://webmail.xyz.com[HTTP::uri]"
}
}
Then you old irule should take care of pool selection :
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/owa" } {
pool OWA_pool
}
elseif { [HTTP::uri] starts_with "/example" } {
pool Example_pool
}
#...
}
If irules are associated to the same VS, yous should make sure the redirect execute first, you have a number of options for that including checking for the hostname before pool selection, or adding priorities to your events
chocokoala
Altostratus
Jun 07, 2022will try this, thanks!
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