Forum Discussion
ekaleido
Aug 31, 2016Cirrus
I made the following test on server. If I do a curl on http://uat2-jboss7.digital-solutions.kamlesh.com:8080/rest2ldap/users/admin_f2400731 I got an answer from my application.
Your iRule will ALWAYS change that to be http://uat-jboss7.digital-solutions.kamlesh.com:8080/rest2ldap
That is why it works direct to the server but not when processed by the BigIP. Try this:
when HTTP_REQUEST {
set orig_uri [HTTP::uri]
if { [string tolower [HTTP::host]] ends_with ".directory.kamlesh.com" } {
pool pool_uat_jboss7
HTTP::uri /rest2ldap$orig_uri
}
}