Forum Discussion
Raz_Cohen
Aug 26, 2021Nimbostratus
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 ...
- 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" } } }
spalande
Aug 26, 2021Nacreous
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" }
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects