Forum Discussion
Ty__Trabosh_946
Nimbostratus
May 02, 2006SSL or Clear based on URI
Hello,
I'm working on creating an Irule that will allow me to send the traffic to two different pools based on the URI.
The twist is that if the URI contains a string I want to be able to re-encrypt and send it to the same server in the pool just to port 443.
I'm decrypting the SSL session with a client side cert for all traffic.
Example.
https://VS.../one/happy.gif --> Pool servers:80 clear text
https://vs.../credit/app --> Pool servers:443 re-encrypt and send to same pool.
Any sample code would be of great assistance.
- JRahm
Admin
You'll need a serverside SSL profile as well. Then, just disable the SSL for the appropriate URI:when HTTP_REQUEST { set usessl 1 if { [string tolower [HTTP::uri]] ends_with "one/happy.gif" } { pool http_servers set usessl 0 } } when SERVER_CONNECTED { if { $usessl == 0 } { SSL::disable } }
- Deb_Allen_18Historic F5 AccountThis rule assumes your https server pool is set as the default on the profile. If that's not the case, you'll need to set it in the rule.
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