Forum Discussion
Chad_Roberts_21
Nimbostratus
Jun 14, 2006Pools and Persistence
I'm having a persistence issue with an iRule I am testing on a site that will be partially inaccessible on holidays. The code below is part of an experiment to find the syntax that will make this work...
Chad_Roberts_21
Nimbostratus
Jun 14, 2006I hear what you're saying, but I'm afraid it didn't affect my problem. I updated the code as you recommended:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST timing on {
if { ([HTTP::uri] starts_with "/sc/") } {
set current_date [clock format [clock seconds] -format {%D} ]
if {([matchclass $current_date equals $::Holidays ] )} {
HTTP::uri "/offhour.html"
log "Blocked for holiday"
persist none
pool after_hour_pool
}
else {
pool $default_pool
log "Access to SC allowed"
}
}
}
But the same thing still happens.
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