I have been working with the F5 for a bit, and have written some simple iRules. However, I am getting a little stuck on this one. We are running an Oracle 11G Fusion Middleware app for a large university. We have recently added in this app to our F5, and I need some ideas.
In the past, we had “garbage collection” rules on the Apache server, so that it always re-directed requests to HTTPS and to the right virtual directory. Now, we have multiple Apache servers load balanced, and SSL is off loaded to the Virtual HTTPS server on the F5. If our users type in -
Assuming you have two VS’s with unique iRUles. On the HTTP one you just need
HTTP::redirect "https://[HTTP::host]/Application/
and on the HTTPS one you need to detect the URI and redirect appropriately
if { {[HTTP::uri] equals ""} or { [HTTP::uri] equals "/"} pr { [HTTP::uri] equals "/Application" } {
HTTP::redirect "/Application/"
}
There’s other ways to do that, but it depends on how complicated the testing needs to be… If the “/Application/” is variable, then you could use a datagroup/class to hold a list of valid URI’s… (To detect the “/Application” and redirect to “/Application/”)
I thought that the issue was that the HTTP VS was tied to the same pool resources. So, I removed that pool, since the HTTP VS is only doing a re-direct anyway, but that didn’t seem to solve it.