Forum Discussion
Dew_Jun_159953
Nimbostratus
Jul 04, 2014iRule for HTTPS IP:port redirection
hello,
I am trying to write an iRule to redirect HTTPS traffic to specific IP:port based on the input URI.
as an example, if url is https://abc.com/data then it should be redirected to https://1...
giltjr
Nimbostratus
Jul 04, 2014Personally I would setup two pools and select a different pool based on the URI. That way your users see the same virtual host. By doing a redirect, you need to have at least two virtual hosts, one for each port. Unless your virtual host is setup to accept traffic on all ports, in which case you would need an iRule to filter the ports you want.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/data" } {
pool pl_data
} else if { [string tolower [HTTP::uri]] contains "/info" } {
pool pl_info
} else
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