Forum Discussion

Raz_Cohen's avatar
Icon for Nimbostratus rankNimbostratus
Aug 26, 2021

Using Multiple iFiles in an iRule

Hi, I am configuring a virtual server that uses an iRule to present an html file of a maintenance page. The html is in the big ip as an iFile. The page is working properly with the following simple ...
  • SanjayP's avatar
    Aug 26, 2021

    Try this

    when HTTP_REQUEST {
    switch -glob [string tolower [HTTP::uri]] {
     "*/favicon.ico" { HTTP::respond 200 content [ifile get <icon_iFile>] "Content-Type" "image/x-icon" }
        default      { HTTP::respond 200 content [ifile get Construction-html] "Content-Type" "text/html" }