Forum Discussion

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

help on irule redirect




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







if { [HTTP::host] equals} { HTTP::redirect }





though i get no errors when saving the irule typing in the browser 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?




12 Replies

  • 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?



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



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