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...
Kevin_Stewart
Employee
Jul 19, 20131. Try this iRule with some logging:
when HTTP_REQUEST {
log local0. "Host = [HTTP::host]"
if { [string tolower [HTTP::host]] equals "jde" } {
log local0. "Catching jde short name - redirecting"
HTTP::redirect "http://jde.example.com[HTTP::uri]"
}
}
Watch the logs and see what happens when you attempt access with the short name. Also, if you can take a client side Fiddler capture, that'll show what the browser is getting back.
2. So just to level set, you have a VIP listening on port 80, and an assigned pool of servers listening on port 94. Port and address translation are enabled. Is this all correct? If you take a capture between the BIG-IP and server I'm confident that you'll see it communicating on port 94. If that's also true, do you perhaps need to include the port in the address to the server? (Ex. http://IP:94/index.html).
Last, silly question, but does the "/jde/E1Menu.maf" URI actually exist on the server?
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