Forum Discussion
bhamman
Nimbostratus
Jul 18, 2013JDE Redirects
I'm new to the iRule game, and these things are probably pretty simple to do, but they're beyond me at this time. I'd like to have users just type "jde" into their browsers and have three things happ...
bhamman
Nimbostratus
Jul 19, 2013I figured it was some weird IBM web server thing, and it was. Our F5 PS guy said that sometimes web apps enforce the listening port by looking for it in the host headers, so I had to modify the port in the headers. Here are the iRules that are on my JDE port 80 VS, in this order. It is now working. Thanks for everyone's help.
1. Redirect the browser to the FQDN if it comes in with a short name
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "jde" } {
HTTP::redirect "http://jde.domain.loc[HTTP::uri]"
}
}
2. Append the URI to send users to the logon page if they come in without a URI
when HTTP_REQUEST {
if {([HTTP::uri] == "/") } {
HTTP::uri "/jde/E1Menu.maf"
}
}
3. Rewrite the host header to tell the app that user really wants to talk to port 94 (thank-you devcentral!)
From: https://devcentral.f5.com/wiki/iRules.http_request_send.ashx
when HTTP_REQUEST_SEND {
Need to force the host header replacement and HTTP:: commands into the clientside context
as the HTTP_REQUEST_SEND event is in the serverside context
clientside {
Replace the HTTP host header with the selected server IP and port
HTTP::header replace Host "jde.domain.loc:94"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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