Forum Discussion
kamlyada_209668
Nimbostratus
Aug 31, 2016Getting below error for the VIP
Hello ,
We have created a VIP :
uat-api.directory.kamlesh.com
Who should redirect to :
http://uat1-jboss7.digital-solutions.kamlesh.com:8080/rest2ldap
...
ekaleido
Cirrus
Aug 31, 2016I 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
}
}
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