17-Jul-2020 03:39
Hi All,
Can anyone one help with this simple redirection:
When users http://adeniyiqa.ngasystem.com/CMWM should be redirected to http://adeniyiqa.ngadsystem.com:8003/CMWM
Thanks for you help in advance.
Ade
17-Jul-2020
05:05
- last edited on
04-Jun-2023
21:22
by
JimmyPackets
,
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
17-Jul-2020 05:57
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.
17-Jul-2020 06:05
Is it possible for you to share Virtual Server & backend pool member configuration here to verify same?
Mayur