Server response redirected to other port.

Our team is looking for an aflex code that can rewrite the server response.

We want to achieve in this aflex is to redirect first the traffic response from the server to for authentication login then after user successfully login redirect again to the other port which is the main dashboard of the user.

Note all of this application is reside only on one server.

We are trying this script but it is not working. Can someone tell me working script.

set VIPtest
# For all the redirects from the servers
if { [HTTP::is_redirect] } {
# Check if the location header contains ":8080"
if {(HTTP::host contains ":8080")} {
# Remove ":8080" from the Location header

HTTP::redirect "http://$VIPtest:8009"
Sign In or Register to comment.