Forum Discussion
AlfaSpider_3544
May 04, 2012Nimbostratus
irule for virtual server to redirect to different pool
Well.....This doesn't work. Any help would be much appreatiated.
when HTTP_REQUEST {
if { [HTTP::uri] contains "mywebsite.com/util" } {
pool my-util-pool
} }
...
AlfaSpider_3544
May 04, 2012Nimbostratus
Getting error when trying to update.
01070151:3: Rule [spu-util-pool-redirect] error: line 2: [undefined procedure: LB::dmz-lgxdev-pool-http] [LB::dmz-lgxdev-pool-http] line 9: [undefined procedure: default] [default { pool dmz-lgxdev-pool-http }] line 13: [command is not valid in the current scope] [}]
This is what I entered
when CLIENT_ACCEPTED {
set default_pool [LB::dmz-lgxdev-pool-http]
}
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host][HTTP::path]] {
"*seattle.gov/util*" } {
pool spu-util-pool
}
default {
pool dmz-lgxdev-pool-http
}
}
}
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