Application SSL Offloading Issues

Half of the problem is that I don’t really know what to ask for, so let me explain my issue (grab your favorite beverage).

I am trying to SSL offload an application called Moodle, and I can get the login page to work beautifully, the problem is that the application has a ton of links that still redirect back to port 80 using the original server name.

I tried to write an Irule that would change the name of the server and port, but I am new to irules and it didn’t go over too well. Can somebody with a bit more knowledge point me in the right direction, it would be greatly appreciated.

when HTTP_REQUEST {

if { ! [HTTP::uri] starts_with “http://unsecure_host_name” } {

HTTP::uri “https://secure_host_name”

}

}

Perhaps you can use the stream profile

Click here to see some information about using stream

Hope this helps

CB

I’ve played with the Streams examples that were referenced in the attached site, and it’s some good stuff.

However I still haven’t found a way to rewrite the links that are embedded in the application. Would a mod_rewrite entry in the httpd.conf be a better solution then trying to rewrite the links on the fly with either a stream profile and an associated stream profile.

It is possible to do it with the stream profile, but it’s more efficient if the webserver does it.