Forum Discussion
Steve_Sutton_87
Nimbostratus
May 04, 2005why is log statement in else clause executing?
Hi,
I have the following rule:
if (http_uri == "/") {
log local0.info "test09si: redirected incomplete URI"
redirect to "https://%h/Test01_09"
...
Martin_Machacek
Jul 18, 2005Historic F5 Account
Use:
if (http_uri == "/") {
log local0.info "test09si: redirected incomplete URI"
redirect to "https://%h/Test01_09"
} else if (http_uri starts_with "/Test01_09") {
use pool test01-8180
}
else {
log local0.info "test09si: redirected for bad path: " + http_uri
redirect to "https://alpha.blueroads.com/error/404.html"
} to include the URI in the log message.
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
