Forum Discussion

Aaron_643's avatar
Aaron_643
Icon for Nimbostratus rankNimbostratus
Apr 29, 2013

Problem with ProxyPass irule10.9 in webservice calls

Hi,

 

What we are aiming to do is to expose some webservices via a virtual server in LTM 10.2.2, and use ProxyPass irule to translate the urls to other ones (for hiding internal structure). but it fails when testing via SOAPUI.

 

Here is what I have done:

 

1. Define datagroups:

 

Name: ProxyPassvs_mytestVS

 

Type: String

 

String: /services/myservice

 

Value: /clientcontext/sca/myservice

 

 

2. create a virtual server: vs_mytestVS at port 9898. and apply ProxyPass irule against it.

 

 

After I make a call via SOAPUI (the destination is: http://mydomainname:9898/services/myservice), it looks like the irule is hanging there. Here is the log (with debug turned one)

 

 

local/tmm info tmm[13473]: Rule ProxyPass109 : vs_mytestVS: 10.51.8.47:65445 -> 10.11.13.106:9898

 

local/tmm info tmm[13473]: Rule ProxyPass109 : VS=vs_mytestVS, Host=mydomainname:9898, URI=/services/myservice: Found Rule, Client Host=mydomainname:9898, Client Path=/services/myservice, Server Host=mydomainname:9898, Server Path=/clientcontext/sca/myservice

 

local/tmm info tmm[13473]: Rule ProxyPass109 : VS=vs_mytestVS, Host=mydomainname:9898, URI=/services/myservice: Redirecting to http://mydomainname:9898/services/myservice/

 

local/tmm info tmm[13473]: Rule ProxyPass109 : VS=vs_mytestVS, Host=mydomainname:9898, URI=/services/myservice/: Found Rule, Client Host=mydomainname:9898, Client Path=/services/myservice, Server Host=mydomainname:9898, Server Path=/clientcontext/sca/myservice

 

local/tmm info tmm[13473]: Rule ProxyPass109 : VS=vs_mytestVS, Host=mydomainname:9898, URI=/services/myservice/: Using default pool pool_mypool

 

local/tmm info tmm[13473]: Rule ProxyPass109 : VS=vs_mytestVS, Host=mydomainname:9898, URI=/services/myservice/: New Host=mydomainname:9898, New Path=/clientcontext/sca/myservice/

 

local/tmm info tmm[13473]: Rule ProxyPass109 : VS=vs_mytestVS, Host=mydomainname:9898, URI=/services/myservice/: Removed Accept-Encoding header

 

After these log, there was nothing happening, I couldn't find the log in my http server. The process looks hanging there forever.

 

 

If I use the same VS (and the same configuration), and try to call http://mydomainname:9898/clientcontext/sca/myservice, it works fine.

 

 

Can you help on that?

 

 

Thank you!

 

 

 

1 Reply

  • Problem resolved. There is a bit that handles the directory redirection based on "/", this bit caused our problem. I commented it out and the webservice is working fine.