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...
hoolio
Cirrostratus
Feb 04, 2010Hi Vijay,
There's a missing close quote on the log statement. Also, since the action for all the cases is the same, you can combine them:
when HTTP_REQUEST {
log local0. "The following is the URI: [HTTP::URI]"
switch -glob [string tolower [HTTP::uri]] {
"*services/TelephonyGatewayCheckSystemAvailable/1.0*" -
"*services/TelephonyGatewayNotifyTopUpAccount/1.0*" -
"*services/TelephonyGatewayNotifyBuyCLPPass/1.0*" -
"*services/TelephonyGatewayNotifyGetPassCount/1.0*" -
"*services/TelephonyGatewayNotifyLookupInvoice/1.0*" -
"*services/TelephonyGatewayNotifyGetAccountBalance/1.0*" -
"*services/TelephonyGatewayNotifyValidateLPN/1.0*" -
"*services/TelephonyGatewayNotifyPayInvoice/1.0*" { HTTP::redirect "http://DAPPEXTVIP10-9906/"}
}
}
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