Forum Discussion
Feb 17, 2017
If you are talking about HTTP of HTTPS to what context are you referring? For the serverside context you could use the following iRule. You will need to add a SSL server profile to the virtual server.
when HTTP_REQUEST {
if {[TCP::local_port] == 80 } {
SSL::disable serverside
pool test-pool
} elseif {[TCP::local_port] >= 3000 && [TCP::local_port] <= 3999 } {
pool test1-pool
} elseif {[TCP::local_port] >= 4000 && [TCP::local_port] <= 4999 } {
pool test2-pool
} elseif {[TCP::local_port] >= 5000 && [TCP::local_port] <= 5999 } {
pool test3-pool
} else {
drop
}
}
If you are referring to the clientside context, I think it would be better to create two seperate virtual servers; one that is handling the HTTP traffic, and one that handles the HTTPS traffic.