Forum Discussion
Vijay_Krishnan_
Nimbostratus
Dec 22, 2009uri redirection to a virtual server
Hello Mates,
I am trying to create irule with uri mapping. I need to redirect to a virtual server based on the uri. Please see the commands below which I use. For some reason it does...
The_Bhattman
Nimbostratus
Dec 22, 2009Hi Vijay,
First glance the synax looks fine. However, if you aren't receiving tcl errors then it's possible that you are not matching up on the URI or the webserver is not picking up the redirection.
Try the following
when HTTP_REQUEST {
log local0. "The following is the URI: [HTTP::URI]
switch -glob [string tolower [HTTP::uri]] {
"*shared/sso*" { HTTP::redirect "http://DAPPEXTVIP11/"}
"*cml/ccb*" { HTTP::redirect "http://DAPPEXTVIP1/" }
}
}
I hope this helps
Bhattman
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