Forum Discussion
chungyu_16122
Mar 17, 2011Altostratus
Create an External class file
Hi all
I am using an iRule to move traffic to different pools based on data group strings. Initially for testing used the GUI data group interface to create the class file.
But for...
Steve_Brown_882
Mar 18, 2011Historic F5 Account
Here is an example of a rule I have used. The rule itself looks at a class file called class_file.
when HTTP_REQUEST {
set pool [class match -value [HTTP::uri] starts_with class_file]
if {$pool ne ""} {
pool $pool
} else {
pool default_pool
}
}
}
Class file includes line similar to the list below.
/content := pool1,
/images :=pool2,
/script := pool3,
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