Forum Discussion
Brad_Parker_139
Nacreous
Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/specific_directory" } {
pool
}
else {
pool
}
}
mjacobs_189214
Feb 25, 2015Nimbostratus
Ah, I see, thank you for the help Brad.. Question, can I roll this into my switch iRule that "looks" at host headers or do I need to create a new iRule and apply it to my Virtual Server? Below is a sample switch iRule which i'm hesitant to update since it's production, thank you again!
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
www.domain.com { pool }
secure.domain.com { pool }