Forum Discussion
John_Lennon_457
Nimbostratus
Mar 22, 2010Redirection to HTML error page if no pool selected
I'm new at using a LTM. I'm using ProxyPass V10 - http://devcentral.f5.com/wiki/default.aspx/iRules/ProxyPassV10.html - I wrote a script to convert the almost 1,000 rules from our Reverse Proxy to thi...
John_Lennon_457
Nimbostratus
Mar 23, 2010Hi Aaron,
we're close however there is an issue - most likely the way I've coded it.
when HTTP_REQUEST priority 501 {
if { [LB::server pool] eq $default_pool } {
set myURI "[HTTP::uri]"
HTTP::redirect "https://www.mysite.com/error.html"
HTTP::uri {/error_gh.html}
log local0.error "Redirecting user IP: [IP::client_addr] to /error.html, URI requested: $myURI $default_pool"
}
}
What I see is that this code is triggered after the previous HTTP_REQUEST changed the URI, for example because of this rule:
/catalog*" { HTTP::uri {/plugins/plugincatalog
What I see in the log is:
Rule Redirections : Redirecting user IP: 96.237.xxx.xxx to /error.html, URI requested: /plugins/plugincatalog Dummy_pool
What is the proper way of resolving this?
Thanks
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