Forum Discussion

Smartboy_67569's avatar
Smartboy_67569
Icon for Nimbostratus rankNimbostratus
Feb 17, 2016

Irule redirect getting error wrong Args

We are doing a simple redirect from http requests to port 8080. I am getting an error but not sure why.

 

when HTTP_REQUEST { HTTP::redirect http://[HTTP::uri] :8080[HTTP::uri] }

 

Thanks in advance

 

2 Replies

  • JamesSevedge_23's avatar
    JamesSevedge_23
    Historic F5 Account

    Hello, You have a space between [HTTP::uri] and ":8080". Below is your same irule minus the space!

     

    when HTTP_REQUEST { HTTP::redirect http://[HTTP::uri]:8080[HTTP::uri] }

     

    Let me know if I can help further...

     

  • And it should rather be:

     

    when HTTP_REQUEST { HTTP::redirect http://[HTTP::host]:8080[HTTP::uri] }