Forum Discussion
Topiata_301614
Nimbostratus
Dec 03, 2016Irule for checking http path and push to a pool
How do I define irule which checks http request and ifit matches path x push it to pool 1 else discard the packet or return http code 404
M_2
Altocumulus
Dec 03, 2016Can you try this 🙂
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "host.domain.com" } {
if { [string tolower [HTTP::uri]] equals "/path" } {
Pool poolA
} else {
HTTP::respond 404
}
}
}
-SAM
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