Forum Discussion

11 Replies

  • Hi hc_andy,

    Depending on how you are implementing the search, you may or may not need to use the Wildcard Qualifier.

    So in the first iRule you might have something like this where you would need it, or in the second iRule you would not:

     
    when HTTP_REQUEST {
    switch -glob [string tolower [HTTP::host]] {
    "*.abc.xyz.com/*" { CACHE::disable }
    "*.foo.com/*" { pool foo.pool }
    }
    }when HTTP_REQUEST {
    if { [HTTP::host] contains "abc.xyz.com" } {
    CACHE::disable
    }
    else { pool server.pool }
    }
    

    Hope this helps.