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 ...
AliMack85_11443
Apr 29, 2013Nimbostratus
Thanks for the speedy replies!
I just wrote this very quickly to try it out so its not fit for purpose yet:
when HTTP_REQUEST {
if {[HTTP::uri] eq "/"}{
{
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"
}
When i try and save this irule it brings back "undefined procedure" errors.
I am just starting out with this stuff so there are probably some glaring mistakes here!
}
}
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