Forum Discussion
Gustavo_Lazarte
Nimbostratus
Sep 06, 2006iRule Not working SIMPLE AND URGENT
The following iRules should send the .jpg traffic to 10.1.0.50
when HTTP_REQUEST {
if {[HTTP::uri] contains "206.112.74.148"}{
if {[HTTP::uri] ends_with ".jpg"}{
...
Sep 07, 2006
As I always recommend, add some log statements to find out where your logic is going bad.
when HTTP_REQUEST {
log local0. "Host: [HTTP::host]
log local0. "Uri: [HTTP::uri]"
if {[HTTP::host] contains "206.112.74.148"}{
log local0. "Host contains 206.112.74.148"
if {[HTTP::uri] ends_with ".jpg"}{
log local0. "uri ends with .jpg"
node 10.1.0.50 80
} else {
log local0. "uri doesn't end with .jpg"
pool iwrewards
}
}
}run your test traffic through the virtual and then look at the /var/log/ltm file. This should point out any changes you need to make to get your logic working correctly.
And, once you have everything working, remove the log statements before you put this into production.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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