Forum Discussion
Robert_47833
Altostratus
Mar 11, 2015HTTP::uri "/new-page[HTTP::uri]" without pool specified
when HTTP_REQUEST {
if {[HTTP::host] ends_with .com and [HTTP::path] equals /} {
HTTP::uri "/new-page[HTTP::uri]";
}
xxxxx-other irule logic-xxxx
...
- Mar 11, 2015
I made some logs ,I found that the request changed to /new-pagexxx ,when it is evluated by xxxxx-other irule logic-xxxx,is it an expected behavior?
yes, i believe so.
Robert_47833
Altostratus
Mar 11, 2015 if {[HTTP::host] ends_with ".com" and [HTTP::path] equals "/"} {
HTTP::uri "/new-page[HTTP::uri]"
}
xxxxxxxxxxxxxxxxxxother-irule-logic---------------------
if {[HTTP::path] starts_with "/new-page"} {
log local0.alert "[HTTP::uri]"
}
xxxxxxxxxxxxxxxxxxother-irule-logic---------------------
- nitassMar 11, 2015
Employee
i do not see anything obviously wrong in the irule. is the page down because of the irule? was there any error in /var/log/ltm? have you tried tcpdump when the problem was happening? - Robert_47833Mar 11, 2015
Altostratus
I am confused .if I put syntax outside the default syntax if {[HTTP::path] starts_with "/new-page"} { log local0.alert "[HTTP::uri]" } the page is up but if I use it in a switch with a default action, "/new-homepage*" { log local0.alert "hellohello [HTTP::uri]" } default { pool xxxx return } } } it is down. no other reason to make it down,only irule. - Robert_47833Mar 11, 2015
Altostratus
ah,maybe it works in this way: when the syntax is out of the switch -glob [HTTP::path] which has default pool,this request will be distributed to this default pool since no match in previous condition. but if I evulate it in this switch -glob [HTTP::path] which has default pool,it will not be distributed to default rule,so LB failed.... - nitassMar 11, 2015
Employee
is pool assigned to virtual server? - Robert_47833Mar 11, 2015
Altostratus
no default pool ...... I tried to add a default pool under VS 5 mins ago,it works so it proves that ......I am right is it? - nitassMar 11, 2015
Employee
i think so. :)
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
