Forum Discussion
dani82_22742
Nimbostratus
Jan 15, 2008Redirect HTTP and HTTPS traffic to the same node in different pools
I have two pools with the same servers but with other ports. I need, that a client, which is connected with http ends on the same server, if it change to https. An I would use cookie-persistence and n...
hoolio
Cirrostratus
Jan 16, 2008A related suggestion...
If you're able to use only HTTP on the back end to the servers, you could define the pool members on the same HTTP port and avoid using an iRule altogether. Just the two VIPs, the same cookie insert persistence profile and the same pool would work.
And if you wanted to use one VIP on port 0, with one cookie persist profile and one pool with the members defined on an HTTP port, you could use a rule like this:
when CLIENT_ACCEPTED {
Make decisions based on the destination port
switch [TCP::local_port] {
80 {
Need to disable client SSL for HTTP requests
SSL::disable
}
443 {
Do nothing, request will be decrypted and sent to pool
}
default {
Reset the request as it's not to an allowed port
reject
}
}
}
Aaron
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