Forum Discussion

Zhinjio_101470's avatar
Zhinjio_101470
Icon for Nimbostratus rankNimbostratus
Jun 22, 2012

This page contains both secure and nonsecure items

Hey folks,

 

 

Strange situation. I wanted to validate my thoughts on this to make sure I'm not missing something.

 

 

Situation:

 

 

Client browser (IE, as it happens), is requesting a page from an application server over HTTPS. The delivered page then points to many other image/javascript resources, as you might expect. Some of these were previously being delivered from the web server in question, over HTTP (directly to an the IP address of the server).

 

 

Recently, this web server was expanded to 2 servers, and an F5 VIP put in front to load balance and improve performance/reliability. Configuration on that is almost entirely defaults for an HTTP VIP. The only change I can think of was to switch to the tcp-lan-optimized profile. All else is the same. Round Robin, no priority groups, etc etc. Everything appeared to be working fine, performance improved, mission accomplished.

 

 

However, shortly after that change, one of the QA folks mentioned that they started getting this IE popup indicating that the page contains both secure and nonsecure items (I'm sure you've seen this before). However, to my way of thinking, that was also true before, and the F5 shouldn't have introduced any change in whether that popup would appear or not.

 

 

Am I missing something? Is there *anything* the F5 could be doing that would suddenly cause this popup to appear where it wasn't before? I won't claim to understand all the possible header manipulations that are possible and how they might impact this, but my gut is telling me it has nothing to do with the F5.

 

 

They will be doing further testing today, but I thought I'd ping folks here and see if y'all had any guidance.

 

 

Thanks in advance,

 

- ZJ

 

4 Replies

  • Hi, yes you are correct, its not the F5 but the way IE works.

     

     

    As you have moved from a web server IP to a VIP IP, IE will no longer know that the source of the HTTP content is a different server. And as VIPS are protocol specific, IE browser sees that the request is coming from one server serving HTTP and HTTPS traffic. This may be reason for the issue.

     

     

    We faced similar issue earlier and after the app team fixed the code by changing the calls to HTTPS instead of HTTP, we no longer got the popup.

     

     

    - Santosh.

     

     

     

  • As Santosh says, the simplest fix is to change the application and replace the http:// references with https:// or relative references without the protocol specified. Else, if that's not an option, you could use a stream profile and STREAM::expression iRule to rewrite the http:// references to https:// in the response payloads:

     

     

    https://devcentral.f5.com/wiki/iRules.stream__expression.ashx

     

     

    Aaron
  • The traffic was always 2 separate servers. Server A dishes out the top level doc, and was always HTTPS, and then the subsequent image and script resource requests were going to Server B over HTTP. Server B is the one that is now behind a VIP. So yeah, I can't see how that behavior would have changed just for putting an F5 in there. It should *always* have had that same issue.

     

     

    Hopefully, today's testing will yield up some useful information.

     

     

    Thanks,

     

    - ZJ
  • Interesting conclusion. Figured I would let you all know.

     

     

    The thing that caused the popup was a change in the application. They had started using a DNS name for the http URL (of the VIP) instead of the IP address of the VIP. For whatever reason, the browser(presumably) would then flag the page as having secure and non-secure items, but if only the IP address is used, it doesn't.

     

     

    Still seems hokey, but at least they have a fix.

     

     

    Cheers,

     

    - ZJ