Forum Discussion
Need help with none http profile redirect
,
If you want redirection specific to above host and uri, you can use below iRule. But if you need same redirection for all host with same URI and/or same host with different uri, you need to modify iRule statements accordingly. Let me know if below iRule works for you.
when HTTP_REQUEST {
if { [HTTP::host] contains "adeniyiqa.ngasystem.com" }{
if { [HTTP::uri] starts_with "/cmwm" }{
HTTP::redirect http://adeniyiqa.ngasystem.com:8003/cmwm
}
}
}Mayur
Hi Mayur,
Thanks for a quick response.
Now I cannot attached it to the VS. It generate error below:
"01071912:3: HTTP_REQUEST event in rule (/Common/adeniyiqa
) requires an associated HTTP or FASTHTTP profile on the virtual-server (/Common/adeniyiqa.ngasystem
.vs.tcp.8003)."
If I associate HTTP OR FASHTTP profile to the VS it stop working completely because the backend is not build on http.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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