Loosing HTTPS After Logging In

Hello,

I have a weblogic (ohs/webcache) and F5 setup

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.

Any ideas?

Thanks, Joe

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.

That is correct.

i add this irule:

when HTTP_REQUEST {

if {[string length [HTTP::host]] } {

HTTP::redirect https://[getfield [HTTP::host] “:” 1][HTTP::uri]

}

else {

HTTP::redirect https://[IP::local_addr][HTTP::uri]

}

}

But its not keeping https. (Again in IE the https is there but the webpage isnt) Any idea on why it errors out in IE?

Thanks

What’s the purpose of the iRule? Clients would need to connect using https:// anyway wouldn’t they, as the VS is only listening on 443?

Yea the VS only listens to 443

I am not sure what I need actually/

The QA i didnt have to

From what I can see on the browser side it doesnt have the https after I login/on the logon page I see the https in all 3 browsers

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]
}

Where would the close quote go?

Whoops, sorry;

when HTTP_REQUEST {
 HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}

chrome now shows as too many redirects

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

mozilla and ie also doesnt work when the rule is in place

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!

Here’s an example for rewriting http:// references to https:// in the response Location header and payload:

Aaron

I’m confused as to why I got it working in QA and not in PROD.

The OHS is configured to send both HTTP and HTTPS traffic so I have 2 vip and and 2 pools. (the say way I had set in QA)

We were like YAY! it works when we got the login page. But it wasnt working once user logged.

I checked the server side for both QA and PRD / It identical except for the diff subnet/ip .

Thanks for the information guys.

Aaron, your the link app was able retains the https all 3 browsers.

Thanks again@

Are you 100% sure the servers are configured the same? The fact the SSLServer Profile doesn’t work with the PROD servers suggests otherwise.

I’m still not quite clear on your setup as you say you have two VSs and two Pools setup in QA and PROD; does that mean the port 80 VS works?

Yea, I checked all the config files I know.

On the F5 I had set the 80 VIP first. Everything worked as it should

Then once that was working. New requirement was have it SSL. We opted to leave 80 open while 443 some online.

What would you suggest to check? F5 side or the weblogic(ohs- webcache ) side. I dont know.

I saw some post enable Welogic pplugin to be checked and in F5 add WL-(something) to true

But that didnt work/

My co-worker it maybe is that the server strips ssl off/ since its ssl offloading it terminated at the F5/ Anything beyond is http.

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?

So is it fixed?

Yea that irule link that Aaron helped fix it. And the OHS is open to both http and https traffic

It retains the https through out site navigation.

Thanks Steve and Aaron. Its good to go.