Forum Discussion
Michael_McCorm1
Nimbostratus
Apr 22, 2005Redirect Via Rules Hangs then timeout
I am attempting to redirect the incoming url to place the context root in the url. I have written the following rule but when i apply the rule i recieve the the ssl cert but then it hangs eventually timing out.
Any help would be appreciated
if (http_uri ends_with "wbaTermsAccept"
or http_uri ends_with "wbaTermsReview"
or http_uri ends_with "cdaTermsAccepts"
or http_uri ends_with "cdaProfileAccept"
or http_uri ends_with "cdaTermsReview"
or http_uri ends_with "cbeTermsAccept"
or http_uri ends_with "cbeTermsReview") {
redirect to "https://%h/wbacustomer/%u"
}
else {
use ( uatwbacustomer7061 )
}
What i need it to do is redirect like the following
https://my.url.com/wbaTermsAccept -> https://my.url.com/wbacustomer/wbaTermsAccept
Our Big IP is currently running BIG-IP Kernel 4.2PTF-10 Build95
Thanks in advance
- Matt_Cauthorn_2
Nimbostratus
I think you have a loop - if the uri ends with "wbaTermsAccept", it will match both: - Scott_Tennican_Historic F5 AccountMattCauth is correct that you have a loop.
class my_class { "/wbaTermsAccept" "/wbaTermsReview" } rule myrule { if (http_uri starts_with "/wbacustomer") { use pool uatwbacustomer } else if (http_uri == one of my_class) { redirect to "http://%h/wbacustomer/%u" } else { use pool uatwbacustomer } }
- Michael_McCorm1
Nimbostratus
All, - It's our pleasure and don't hesitate to post any questions you have in the future.
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