Forum Discussion
AliMack85_11443
Apr 29, 2013Nimbostratus
Error page iRules
I have recently been tasked with maintaining an F5 implementation and i am looking into how to develop iRules for error pages (maintenance, 404 etc).
My issue is that instead of having the html ...
What_Lies_Bene1
Apr 29, 2013Cirrostratus
Lots of mistakes, here's my corrections plus switching from if to switch;
when HTTP_REQUEST {
switch { [string tolower [HTTP::uri]] } {
"/" { HTTP::respond 200 content [ifile get errorpage.txt] "Content-Type" "text/html" }
"/image01_en.png" { HTTP::respond 200 content [ifile get image01_en.png] "Content-Type" "image/png" }
}
}
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