Forum Discussion

Brad_Otlin's avatar
Brad_Otlin
Icon for Employee rankEmployee
May 08, 2013
Solved

Reference an iRule variable in an HTML iFile response

I have a sorry page iRule that serves an html sorry page if no servers are left in the pool and serves another page if a 404 or 5xx is encountered. The 404/5xx portion of the irule tries each server...
  • spark_86682's avatar
    May 08, 2013
    I think the subst Tcl command is closest to what you want:

    
    HTTP::respond 200 content  [subst -nocommands -nobackslashes [ifile get error_html]]
    

    Very clean, and much safer than using eval.