Forum Discussion
nelson_ge_10908
Jan 31, 2005Historic F5 Account
How to log URL with iRule
I am load balancing 2 proxy servers with widecard vip and need to log the client IP and the URL with iRule. Does this rule look right?
when HTTP_REQUEST {
if...
unRuleY_95363
Feb 03, 2005Historic F5 Account
Pretty simple, you get at the destination Host via the [HTTP::host] command. So, in a rule:
when HTTP_REQUEST {
if { [HTTP::host] eq "www.xyz.com" } {
pool xyz_pool
}
}
or if you want to get a little fancy:
when HTTP_REQUEST {
if { [domain [HTTP::host] 2] eq "xyz.com" } {
pool xyz_pool
}
}
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