For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

WUM_113639's avatar
WUM_113639
Icon for Nimbostratus rankNimbostratus
Mar 11, 2014

Redirection VS with Irule

Hi,

 

I have a VS with redirection only, without any resource, I have not come across such requirement before, but I have got to make it work, I would appreciate the help in making it work.

 

iRule...

 

when HTTP_REQUEST { if { [HTTP::url] equals "http://wpad/wpad.dat" } { HTTP::redirect "http://192.168.50.207:8080/accelarated_pac_base.pac" } }

 

TMOS v11.4.0

 

1 Reply

  • Try this:

    when HTTP_REQUEST { 
        if { [string tolower [HTTP::url]] equals "/wpad/wpad.dat" } { 
            HTTP::redirect "http://192.168.50.207:8080/accelarated_pac_base.pac" 
        } 
    }
    

    The HTTP::uri command only returns the URI portion of the request.