Forum Discussion
iRule - Prepend Path to URI
- Oct 23, 2014
For reasons I can't explain, string map is not matching [HTTP::uri]
Since this is a simple prepend, you could do this instead
when HTTP_REQUEST { if { [HTTP::host] starts_with "www.host.com"}{ HTTP::uri "/abc[HTTP::uri]" } }
What if I want exactly the opposite. I want the VS which is http://10.50.170.1:80/test/Services/SecureAdapters/AndroidWidget/Interface/GetMSISDNAndBundleInformation-SOAP
should hit the pool as
http://10.50.169.14:11040/Services/SecureAdapters/AndroidWidget/Interface/GetMSISDNAndBundleInformation-SOAP
http://10.50.169.16:11040/Services/SecureAdapters/AndroidWidget/Interface/GetMSISDNAndBundleInformation-SOAP
For example the above pool name is F5. I want iRule to select this pool on the URI /test but remove the word /test when send to pool.
Recent Discussions
Related Content
* 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