OK, i guess i have to reinstate the question and describe my situation.
we have site: mycomany.com where IIS doing automaticaly redirect to the page
when users go to this site on port 80, we use BigIP iRule & redirect to port 443
Now, after we implemented trusted sign-on for internal users, based on source IP we want to redirect them to different authentication page.
we can't use HTTP::redirect, since IIS doing some redirection automatacaly, in which case we will have mycomany.com/"BigIP-redirect""IIS redirect" as one string in URL
We want to use HTTP header insert string, which vill be recognized by IIS and present different authentication based on the IP source.
I guess: Header_1 represents a header name such as "user" or "host" value_3 represents the actual value of "user" or "host"
not going to do much, since i don't care about "user" and "host" - destination will be the same.
so, what are my options. where in this statement i can insert HTTP::header rule? and how does it going to look like?
how will it come across i.e.( STRING=1, STRING=true, or just the mere existence of STRING, which will signifies different source IP)
when HTTP_REQUEST {
if {([TCP::local_port] eq "80") and ([IP::client_addr] eq "10.x.x.x/16")} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} elseif {[TCP::local_port] eq "80" } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
} else {
pool Servers-Pool
}
}