Forum Discussion
Brian_Gupta_115
Nimbostratus
Jan 27, 2005Need a sanity check on a URI parsing rule...
when HTTP_REQUEST {
set my_uri [string tolower [HTTP::uri]]
if { $my_uri contains "/hr" or $my_uri starts_with "hr" } {
pool hrmstest
} ...
Brian_Gupta_115
Nimbostratus
Feb 05, 2005I setup the classes. For one of the pools I needed to use serverssl. I enabled serverssl on the pool and made this rule:
when HTTP_REQUEST {
set my_uri [string tolower [HTTP::uri]]
set usessl 0
if { [matchclass $my_uri contains $::ps_hrms_uris] } {
pool hrmstest
} elseif { [matchclass $my_uri contains $::ps_fin_uris] } {
pool fintestssl
set usessl 1
} elseif { [matchclass $my_uri contains $::ps_crm_uris] } {
pool crmtest
} else {
pool portaltest
}
}
when SERVER_CONNECTED {
if { $usessl == 0 } {
SSL::disable
}
}
Please let me know if you know of a better way to do this.
Thanks,
Brian
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
