Forum Discussion
BaluV_160328
Nimbostratus
Jul 02, 2014URL Rewrite iRule Help Requested
Hi All,
Would appreciate if someone help me in verifying the following iRule..
My Requirement is that I have 2 URLs which resolves to the same IP address, the rewrite should take effect bas...
nitass_89166
Noctilucent
Jul 02, 2014what about this?
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/" {
HTTP::redirect "http://[HTTP::host]/irj/portal"
}
"/sap*" {
switch [HTTP::host] {
"dms-pd.abc.com" { pool pool-10.10.10.1-50005 }
"dms-dev.abc.com" { pool pool pool-10.10.10.2-8000 }
default {
do something
}
}
}
"/irj*" -
"/webdynpro*" -
"/rtmfCommunicator*" {
pool pool-10.10.10.10-50000
}
default {
do something
}
}
}
- BaluV_160328Jul 02, 2014
Nimbostratus
Thanks for your quick response.. However, what could be the action for the following function ? default { do something }
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