Forum Discussion
CraigM_17826
Altocumulus
Oct 03, 2007Odd behaviour with WebSphere Portal
Hi everyone,
we are experiencing some odd behaviour with some embeded javascript (WebTrends log code) on our WebSphere portal. We are fairly sure it is being caused by the BigIP because if we go direct to the WebSphere nodes we do not have the issue.
In short, our existing iRule forces a redirect from http to https. This all seemed to be fine until we installed the Javascript from WebTrends. This JavaScript does a http connection to our log server to record various attributes about the current sessions and so on. What is really hapening is that the connection to the log server is being altered to use https and not http. Seeing as we do not have a SSL cert on this log server the javasctipt code was failing to connect. As to why the connection type is being changed to https from http is unkown unless (which I suspect) it has something to do with our iRules. We have since installed a self signed SSL cert but this still causes some issues as some browsers will not establish a SSL connection with an untrusted SSL cert. We are currently waiting on a Verisign SSL cert which should fix the issue.
My question is, is this normal behaviour? I wouldn't expect so, but I'm fairly new to all of this.
To expand on the iRule(s) we use, we have two rules and two virtual servers defined. One pair for HTTP connections, the other pair for HTTPS connections. All the HTTP rule does is basically force a redirect to the https virtual server. It does some other URI checking for legacy websites that reside on other (non BigIP load balanced) servers and redirects to those, but apart from that, that's it. The HTTPS rule is used by the HTTPS virtual server. This iRule was based on the F5 WebShphere Deployment Guide and has a few additional tests to suite our site, but nothing major, once again just additional URI tests for specific area's that reside on other non BigIP managed servers.
As I said, everything seems to be fine except for the fact that the JavaScript http connections are being translated to https.
I have contacted WebTrends about this but I think given it's more looking to be BigIP related they might not be of much help or reluctant to help.
I realise it's probably hard to diagnose this without posting our rules, and I am more than happy to, but I don't want to make this post too big, so unless it's requested I wont.
So if anyone has any suggestions they would be greatly appreciated.
tia
Craig
- Deb_Allen_18Historic F5 AccountHi Craig --
- Rich_79422
Nimbostratus
Craig, - Chris_Miller
Altostratus
Posted By Rich on 11/01/2010 05:08 AM Craig,when HTTP_REQUEST {
if { !([HTTP::uri] eq "/pathtoexclude}) {
HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
Make sense?
If you have a ton of requests you want to exclude, I'd suggest using a string type data group...I find those easier to read than a long list of "or" statements but others might suggest something else.
- Rich_79422
Nimbostratus
Chris, - Chris_Miller
Altostratus
Posted By Rich on 11/01/2010 06:40 AM - Rich_79422
Nimbostratus
Folks, - hoolio
Cirrostratus
Hi Rich,when HTTP_REQUEST { Disable the stream filter for all requests STREAM::disable } when HTTP_RESPONSE { Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace http://www.server.com:80/wrc/fff with https://www.server.com/wrc/fff STREAM::expression "@http://www.server.com:80/wrc/fff@https://www.server.com/wrc/fff@" Enable the stream filter for this response only STREAM::enable } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects