Forum Discussion
chocokoala
May 31, 2022Altostratus
iRule 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
A 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
Jun 07, 2022Altostratus
Hi again,
For the 2nd line:
if { [HTTP::host] eq "webmail.abc.com" }
don't i need to add [HTTP::uri] ?
sorry im just newbie on f5 irules
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