Forum Discussion
phipse
Mar 03, 2019Altostratus
LTM iRule Reverse Proxy redirect
Hi Guys,
Sorry for the repeat post in advance. I'm trying to configure a reverse proxy (RP) using an iRule, but I can not get it to work. I'm a network engineer by trade, but I love learning this...
- Mar 04, 2019
Phipse,
Have you tried using string map,
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/ucit" } { HTTP::uri [string map {"/ucit/" "/services/"} [HTTP::uri]] pool pool_Node4RP_Reg } else { pool pool_RTS_4400 } }
jaikumar_f5
Mar 04, 2019MVP
Here's a tip,
This statement
HTTP::uri "/services/downloaddocument?_wadl"
will completely replace your incoming uri to what you have just specified. Thus you'd lose your http queries and it's params.
Look for how to capture the http query and how to preserve and pass along while changing http uri.
If you find struggling, pls keep us posted. Happy to help.
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