Forum Discussion

Graham_White_11's avatar
Graham_White_11
Icon for Nimbostratus rankNimbostratus
Feb 10, 2006

discard command doing a re-direct

I have an issue where I am trying to drop requests based on either a specific domain being requested or a combination of a domain and a specific uri. Instead of being dropped the requests are being re-directed to our fall back host that we have specified in our http profile. I did the exact same thing in version 4.5 of the software and the requests were dropped properly. In version 9.2 I am getting this re-direction. I also tried the drop command with the same results. A snippet of the iRule syntax that I am using is below. Any thoughts?

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] equals "/somedir/x.php" and [HTTP::host] equals "domain.com" } {

 

discard

 

} elseif { [HTTP::host] ends_with "adifferentdomain.com" } {

 

discard

2 Replies

  • bl0ndie_127134's avatar
    bl0ndie_127134
    Historic F5 Account
    I think you have run into a legitimate problem. You should be able to work around this by removing the fallback host from the http profile and setting it inside the rule during LB_FAILED (if that's an option for you).

    
    when LB_FAILED {
      HTTP::fallback "journal.abc.com"
    }

    I have created CR59409 to fix this porblem. Please contact support to track the progress of the CR.

    Thanks!