Forum Discussion
Darren_21048
Nimbostratus
Jul 10, 2009URI Pool Redirect Question
Hi everyone,
Complete newbie here. I want to create an iRule that redirects to another pool based on the URI. So if I get a request for www.domain.com/xyz/, the request goes to the pool configu...
hoolio
Cirrostratus
Jul 10, 2009You can get the VS's default pool using LB::server in CLIENT_ACCEPTED, so this should suit your needs:
when CLIENT_ACCEPTED {
Save the default pool name
set default_pool [LB::server]
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/abc" } {
pool abc_pool
} else {
pool $default_pool
}
}
You can specify a source netmask on a OneConnect profile of 255.255.255.255 to ensure only the same client IP address reuses a server side TCP connection.
Aaron
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
