Server response redirected to other port.

Community Forum Forums Thunder and AX Series aFleX Server response redirected to other port.

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by avatar netcrawler 3 years, 4 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5154
    avatar
    netcrawler
    Member

    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 192.168.10.1:3013 for authentication login then after user successfully login redirect again to the other port 192.168.10.1:2011 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.

    when HTTP_RESPONSE {
    set VIPtest 192.168.8.103
    # 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”
    }
    }
    }

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.