Hi, I have received a request wherein requester needs port redirection from 80 to 20002, please help to get the correct irule.
are you trying to redirect on Virtual Server port?
Yes
I did like this, is it ok ?
when HTTP_REQUEST {
Redirect client to the full host name
HTTP::redirect “https://[HTTP::host]:9614[HTTP::uri]”
}
You can try creating a virtual server with same IP and different Port number(9614) and apply an irule like below to the port 80 virtual server
when HTTP_REQUEST {
virtual virtualservername // replace with name of new virtual server
}
Hope this helps!