Forum Discussion
owaters_69636
Nimbostratus
Oct 24, 2009Redirect iRule Help
I am trying to redirect http://weatheri.cme.com:443 to http://datasuite.cme.com and I have been unable to figure out the right iRule for this. I was using the following iRule but this doesnt seem to do what I intended it to do. Heeeelppp!
when HTTP_REQUEST {
if { [HTTP::host] eq "weatheri.cme.com:443"} {
HTTP::redirect "http://datasuite.cmegroup.com"
}
}
YOur help would be greatly appreciated.
Odell
- L4L7_53191
Nimbostratus
What is the specific behavior you're seeing? I notice the you're using :443 appended to the hostname, which is almost always associated with SSL - is the weatheri.cme.com site SSL enabled? - owaters_69636
Nimbostratus
The site is not SSL enabled, they use port 443 as if it was a TCP port rather than an SSL handshake. So in theory the FQDN could have any port number like :443 in the FQDN. Does that help Matt? - owaters_69636
Nimbostratus
Also what is happening with the iRule I pasted above is weatheri only gets redirected to datasuite when I dont use the :443 in the url, which is correct however if weatheri.cme.com has the :443 this same iRule doesnt redirect to datasuite it just sits and spins. - owaters_69636
Nimbostratus
The site is not SSL enabled, they use port 443 as if it was a TCP port rather than an SSL handshake. So in theory the FQDN could have any port number like :443 in the FQDN. Does that help Matt? - L4L7_53191
Nimbostratus
Your redirect really does look like it should work. For example:when HTTP_REQUEST { if { [HTTP::host] eq "192.168.1.100:8080"}{ HTTP::redirect "http://www.python.org" } }
http://192.168.1.100:8080/%27http://%27http://%27http://www.python.org%27
- hoolio
Cirrostratus
Could you clarify what TCP port(s) clients make requests to? If the client is manually entering a port number in the address bar, the browser will attempt a TCP connection on that port. If there isn't a VIP defined on that port, the client request will time out (or "spin").
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