Forum Discussion
ndubey2
Dec 27, 2023Altostratus
iRule for non http services
Hello All, Can we configure an iRule for non http services? I have a VIP configured on port 491 with 3 Pool which I am trying to manage using irule but traffic is not hitting irule. when HTTP_REQ...
Paulius
Dec 28, 2023MVP
ndubey2 I would definitely make sure you have the pieces configured that zamroni777 mentioned. In addition, you might try the following iRule instead because your URI path could not match the case exactly and the following will ignore case.
when HTTP_REQUEST priority 500 {
set URI [string tolower [HTTP::uri]]
if { ${URI} starts_with "/uri1" }{
pool QA_URI1_491
} elseif { ${URI} starts_with "/uri2" }{
pool QA_URI2_491
} elseif { ${URI} starts_with "/uri3" }{
pool QA_URI3_491
}
}
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