I created new vip/ adding new pool using 443 as ports add client and server ssl profiles.
In prod this same setup doesnt work wheras in the qa it goes through - retains the (new vip/ adding new pool using 443 as ports add client and server ssl profiles.)
So i go to the site : https://site.ping.com/app (retains the https) get a logon window> logs in - i see as HTTP, and errors out but when I add HTTPS I go to the next page.
This only works in chrome and mozilla - IE alreayd shows as HTPPS but no page/ I get a programming error.
OK, so you can you be a bit more explicit about your configuration, is it like this;
Client ---> Virtual Server:443/SSL Termination then Re-encryption ---> Pool Member:443/SSL Termination
You can try enabling Redirect Rewrite in the HTTP Profile assigned to the Virtual Server (if the above is correct) although this shouldn’t be necessary.
Additionally, a Stream Profile might solve the issue but also shouldn’t be necessary if your Virtual Server and Pool Members are all listening on port 443 and terminating SSL.
OK, so your iRule is redundant. If a client switches to HTTP, it’ll send it’s request on port 80 and it obviously won’t be responded to. I’m not sure why there would be a http:// link sent in a server response when the server itself is running SSL but hey, bad code is everywhere!
The simplest fix I would say is to create an additional port 80 version of your Virtual Server, don’t assign a Default Pool but assign a HTTP Profile and this iRule;
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]
}
OK. Looks like the server is sending a redirect with http:// and then we’re sending a second. OK, so our best bet is to rewrite the server redirects. Take the iRule off and enable Redirect Rewrite in the HTTP Profile and all should be well (I hope). If not, we can also use a Stream Profile but we’ll not do that unless this fails.
It’s worth noting we are fixing a server configuration issue here; the server(s) should not be sending http:// redirects over an SSL connection!
It’s very possible the servers don’t return https:// links, hence the suggestions around the Stream profile but didn’t you say the servers were serving via SSL?