reverse proxy one server, multiple uri's
Used a rule in this thread. Troy's response actually.
This one site has multiple redirects off port 7004. The initial site connects with the cert and offloads to the client. the other 2 sites do not display the cert but display the data anyhow. I assume because of the server redirects.
from my rule the only site that works is console-selfservice and that's whats currently on http://site:7004/. Here is my rule: when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains ("/console-selfservice/") } { HTTP::header replace "Host" site:7004 }
if { [string tolower [HTTP::uri]] contains ("/console-selfservice/TroubleShooting/") } { HTTP::header replace "Host" site:7004}
if { [string tolower [HTTP::uri]] contains ("/IMS-AA-IDP/sso/") } { HTTP::header replace "Host" site:7004}
}
when HTTP_RESPONSE { HTTP::header replace Location [string map -nocase {site:7004 site:7004} [HTTP::header value Location]] }
can we have more than one condition for HTTP_REQUEST rule? from my experience with the ACE it would look like the uri isn't getting matched and not displaying the webpage.