Forum Discussion
DM_5174
Nov 02, 2011Nimbostratus
Redirect to another POOL with URI and port
Hi All,
I was wondering if there is a way to redirect a URI to POOL and keeping
the URI? Below are the irule to send to the pool, however, I could not figure out
or know if there is a way to k...
Michael_Yates
Nov 02, 2011Nimbostratus
Hi DM,
Check the Virtual Server and insure that "Address Translation" and "Port Translation" are enabled. They should be enabled by default.
If so, the LTM will do all of the Port Translation in the background (no need to append any ":8080" in the request) and the Address Translation from the Virtual Server IP Address to the Pool Server IP Address.
This should do what you are asking:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/soap/newapp1*" { pool SOAP_POOL }
"/app1*" -
"/app2*" -
"/app3*" -
"/app4*" { pool APACHE_SERVER_POOL }
}
default { pool IIS_WEB_POOL }
}
Hope this helps.
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