justin_schauf_3
Nov 03, 2017Nimbostratus
Multiple port redirection with an iRule
I have 2 servers I need to be able to reddirect 1 virtual server to and am having trouble with the iRule. Here is my iRule
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://[HTTP::host]/subfolder/Default.html"
}
}
My 2 nodes are on different ports on each server. The irule redirects like this.
http://server.net/subfolder/Default.html:30005
I need it to send it to this.
http://server.net:30005/subfolder/Default.html
Thanks for any assistance in advance.