Forum Discussion
Torsten_Heß_937
Nimbostratus
May 03, 2005Matchclass HTTP::HOST
Hello,
I have problem concerning the following rule. I tried to migrate a 4.x rule to a 9.5 rule an it failed. The rule is accepted but didn´t work.
The 4.x rule looks like:
if ...
Stephan_Manthey
May 18, 2005Historic F5 Account
hi,
i tried this one:
class test_de_domain {
"www.test1"
"www.test2"
}
when HTTP_REQUEST {
if {[matchclass [HTTP::host] starts_with $::test_de_domain]}{
pool test_pool_http
log local0. "[HTTP::host] Forwarded"
} else {
pool drop_pool_http
log local0. "[HTTP::host] Failed"
}
}
now "tail -f /var/log/ltm" returns as expected:
May 18 20:15:51 tmm tmm[643]: Rule http_irule1 : www.test1 Forward
May 18 20:15:55 tmm tmm[643]: Rule http_irule1 : www.test2 Forward
May 18 20:15:58 tmm tmm[643]: Rule http_irule1 : www.test3 Failed
regards
stephan
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
