Forum Discussion
Graham_White_11
Nimbostratus
Feb 10, 2006discard 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
- bl0ndie_127134Historic F5 AccountI 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" }
- Graham_White_11
Nimbostratus
Thanks Bl0ndie. I will follow the CR to keep track of progress.
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