Forum Discussion
El_Jefe
Jul 31, 2011Nimbostratus
Need ideas for a "garbage collector" iRule
Hello,
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 fo...
Hamish
Jul 31, 2011Cirrocumulus
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/")
H
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