Redirect to different VS - iRule
I have two VS one listening on port 80 and the other 443 and they share the same IP.
They are two different back-end servers.
Right now SSL traffic is only flowing to the VS listening on 443 (which makes sense.)
A dev asked me if it was possible to have a particular page to be SSL but use the back end Server which is tied to the VS listening on port 80?
My plan was to create a new VS which is pointing to the the back-end server but listening on 443 and use an iRule to redirect that one page.
My question is how would you write the iRule to essentially go to a particular VS?
Like in this example where would I specify the VS:
when HTTP_REQUEST { if { [HTTP::host] equals "example.com/example.asp" } { HTTP::redirect ".[HTTP::host][HTTP::uri]" } }