Forum Discussion
Bob_Vance_75936
Altostratus
Nov 06, 20084.x to 9.x irule conversion
I'm a newbie with tcl and am having difficulty getting them over from 4.x to 9.4. It seems to balk at an "[undefined procedure sS] [sS]" in the regex statements. It does this at each one of the bracket expressions. What does this mean and how do I resolve it? Thanks in advance for your help.
when HTTP_REQUEST {
if { [http_uri] contains "^/[sS][cC](/.{0,}|$)" } {
use pool CSHTTP
}
elseif { [http_uri] contains "^/PlanSharedResourcesClient/.*" } {
use pool PlanResourcesPool
}
elseif { [http_uri] contains "^/PlanCentral/.*" } {
use pool PlanResourcesPool
}
elseif { [http_uri] contains ".*(\.htm|\.htc|\.js|\.gif|\.png|\.jpg|\.css)" } {
use pool PlanResourcesPool
}
elseif { [http_uri] contains "^/[nN][mM][fF](/.{0,}|$)" } {
use pool DOCPool
}
elseif { [http_uri] contains "^/[wW]eb[sS]ervices(/.{0,}|$)" } {
use pool WebServices
}
elseif { [http_uri] contains "^/[fF][sS](/.{0,}|$)" } {
use pool Feedback
}
else {
use pool NaviNetHTTP
}
}
- Bob_Vance_75936
Altostratus
I think I found my answer here: - Nicolas_Menant
Employee
Hi,
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