Forum Discussion

Marty_Baxter_14's avatar
Marty_Baxter_14
Icon for Nimbostratus rankNimbostratus
Mar 27, 2014

Remove port from http response

Our F5 is forwarding traffic to IIS web servers on non-standard ports (such as 20018). The application on the web server is generating a back button that will send traffic back to http://app.blah.com:20018. How do I get the F5 to remove the port number from the response that is sent back to the client - in other words replace any instance of http://app.blah.com:20018 with http://app.blah.com in the response?

 

Thank you!

 

3 Replies

  • uni's avatar
    uni
    Icon for Altostratus rankAltostratus

    This post is very similar to your requirement. All you really need to do is change the line

     

    STREAM::expression {@https%3A%2F%2Fabc.com@http://xyz.com:8080@}

     

    to

     

    STREAM::expression {@app.blah.com:20018@app.blah.com@}

     

     

  • Thank you.

     

    When I try to use the iRule I get the following error:

     

    1070394:3: STREAM::enable in rule (/Common/test) requires an associated STREAM profile on the virtual server (/Common/vSVC-018-to-QA)