The new request is not being fully constructed. Rather it is appearing on the Proxy server as 'GET /samltest/samltest.asp' opposed to ‘GET http://dalvdmz08.carreker.com/samltest/samltest.asp’ and the Proxy server is denying the request with the following error:
Error Code: 502 Proxy Error. The Uniform Resource Locator (URL) does not use a recognized protocol. Either the protocol is not supported or the request was not typed correctly. Confirm that a valid protocol is in use (for example, HTTP for a Web request). (12006)
Here is the iRule I have configured. Any help would be greatly appreciated.
Source NAT (SNAT)
when CLIENT_ACCEPTED {
snat 10.206.1.245
log local0. "iRule SCO-Proxy - Setting SNAT to 10.206.1.245"
}
Search for Bank Name
when HTTP_REQUEST {
log local0. "iRule SCO-Proxy - HOST: [HTTP::header host]"
log local0. "iRule SCO-Proxy - PATH: [HTTP::path]"
if { [string tolower [HTTP::path]] contains "/adirondacktrust" } {
log local0. "iRule SCO-Proxy - Yes URL contains /adirondacktrust"
Rewrite the URI
HTTP::uri "/samltest/samltest.asp"
log local0. "iRule SCO-Proxy - New URI is [HTTP::uri]"
Rewrite the Host header
HTTP::header replace host "dalvdmz08.carreker.com"
log local0. "iRule SCO-Proxy - New host is [HTTP::header host]"
Log Re-written URL
log local0. "iRule SCO-Proxy - New URL is [HTTP::header host][HTTP::uri]"
use pool proxy-isa} else {
discard
log local0. "iRule SCO-Proxy - The request was discarded"}
}