Forum Discussion
Laurent_53635
Nimbostratus
Mar 08, 2010webmail Rewriting irule
Hello,
I am sure this question has already been asked many times but i do not manage to find the solution in this forum.
I have a VS on my LTM 9.4.5 in https. I want to imple...
hoolio
Cirrostratus
Mar 08, 2010Hi Laurent,
I'm not sure I understand the requirements exactly. Can you take a look at this example which uses a switch statement to check the requested path (URI minus the query string) and see if it looks like it will work for your scenario? If not, can you clarify what else you want to do?
when HTTP_REQUEST {
Check the requested URI
switch -glob [string tolower [HTTP::path]] {
"/imsurvey/*" {
Path started with /imsurvey/ so disable SSL and select the IMsurvey pool
SSL::disable serverside
pool pool-IMsurvey
Exit this event in this rule
return
}
"/webmail" {
Path was exactly /webmail so rewrite the path to /
HTTP::path "/"
}
}
If we're still in the iRule, enable server SSL and select the pool
SSL::enable serverside
pool pool_OWA
}
Thanks, Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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