Forum Discussion

rhino_109458's avatar
rhino_109458
Icon for Nimbostratus rankNimbostratus
Jan 18, 2012

help on irule redirect

hello

 

 

f5 noob here

 

 

i have a machine running different virtual servers

 

 

i want to make a simple redirect to a speciffic URL and found this on some other posts

 

 

when HTTP_REQUEST

 

{

 

if { [HTTP::host] equals https://aaa.com} { HTTP::redirect https://aaa.com/hello }

 

}

 

 

though i get no errors when saving the irule typing in the browser https://aaa.com i get to my custom error page

 

 

on the log i can see that there was a block on /

 

 

seems to me the irule is not working

 

some help please?

 

 

thanks
  • You should see at least one log line per HTTP request from this log statement:

     

     

    log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::host][HTTP::uri]"

     

     

    Do you see that in the /var/log/ltm file when you test? If not, can you verify that you're testing to the same virtual server that you've enabled the iRule on?

     

     

    Aaron
  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus
    1) What do your HTTP Headers show?

     

     

    2) Are you seeing the traffic in your IIS Logs?