Forum Discussion
Dixit_18200
Nimbostratus
Aug 13, 2009Issue with irule in 9.4.7
Hi All,
We are having issues with irules created on 9.4.7. Below is the iruel we have added. But its not working. Please help.
when HTTP_REQUEST {
if {[HTTP::request] contains "www.acbg.com/ucc"} {
HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx"
}
}
3 Replies
- The_Bhattman
Nimbostratus
My suggestion is to perform a debugwhen HTTP_REQUEST { log local0. "This is the full Request: [HTTP::request]" if {[HTTP::request] contains "www.acbg.com/ucc"} { HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx" } }
otherwise you might want to switch to something likewhen HTTP_REQUEST { if {([HTTP::host] eq "www.adbg.com") and ([HTTP::uri] equals "/ucc") } { HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx } }
Hope this helps
CB - hoolio
Cirrostratus
Checking the entire collection of request headers with HTTP::request will be less efficient. As cmbhatt suggests, the second option of checking the host and URI would be better. If it's an IIS based web app, you should also set the URI to lower case before checking it against the "/ucc" string.
Aaron - Dixit_18200
Nimbostratus
Hi Aron/CB,
The issue has been resolved now. We used ends_with string for resolving this issue. Also i have one more question, we have added this irule to the node which is configured to 443. However i am not sure why this was not working when we added the same irule to dummy node configured on port 80 as we were doing http redirect.
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