2. based on matching the URI “/soap/newapp1”, they are forwarded to a member in the SOAP_POOL that is listening on port 8080, however during this, the URI needs to match “http://192.168.2.100:8080/soap/newapp1”.
NOTE: We do not want to redirect from one link to another since this server is internal and not accessible to internet clients. So, if I was an external users and i enter
not exactly, the external users should not see or get redirected to the 192.168.2.100 address since this is an internal non-routable IP.
what should happen is based on matching the URI “/soap/newapp1”, they should be sent/forwarded to the “SOAP_POOL” that has a member 192.168.2.100 listening on port 8080. The URI path should carry to this fowarding "http://[member of pool:8080]/soap/newapp1.
not exactly, the external users should not see or get redirected to the 192.168.2.100 address since this is an internal non-routable IP.
what should happen is based on matching the URI “/soap/newapp1”, they should be sent/forwarded to the “SOAP_POOL” that has a member 192.168.2.100 listening on port 8080. The URI path should carry to this fowarding "http://[member of pool:8080]/soap/newapp1.
Can any help or even know this is even possible? I have been digging through the past forum and have not seen any thread of this ever being done, or even possible to do…
Check the Virtual Server and insure that “Address Translation” and “Port Translation” are enabled. They should be enabled by default.
If so, the LTM will do all of the Port Translation in the background (no need to append any “:8080” in the request) and the Address Translation from the Virtual Server IP Address to the Pool Server IP Address.
This should do what you are asking:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/soap/newapp1*" { pool SOAP_POOL }
"/app1*" -
"/app2*" -
"/app3*" -
"/app4*" { pool APACHE_SERVER_POOL }
}
default { pool IIS_WEB_POOL }
}