v11.1–External File Access from iRules via iFiles
New in BIG-IP version 11.1 are iFiles, a feature that allows users to load files through tmsh or the GUI onto the BIG-IP which can be referenced from iRules. This has an immediate use case of supplan...
Updated Feb 01, 2023
Version 2.0JRahm
Admin
Christ Follower, Husband, Father, Technologist. I love community and I especially love THIS community. My background is networking, but I've dabbled in all the F5 iStuff, I'm a recovering Perl guy, and am very much a python enthusiast. Learning alongside all of you in this accelerating industry toward modern apps and architectures.JRahm
Admin
Christ Follower, Husband, Father, Technologist. I love community and I especially love THIS community. My background is networking, but I've dabbled in all the F5 iStuff, I'm a recovering Perl guy, and am very much a python enthusiast. Learning alongside all of you in this accelerating industry toward modern apps and architectures.dragonflymr
Cirrostratus
Feb 18, 2016Hi DushyantSingh,
I assume that you can do that using switch, tested and working on my side:
switch [string tolower [HTTP::uri]] {
"/" { HTTP::respond 200 content [ifile get main_maint_few_images_txt] }
"/f5b_mini.png" { HTTP::respond 200 content [ifile get main_maint_png] }
"/pic_mountain.jpg" { HTTP::respond 200 content [ifile get main_maint_02_jpg] }
default { discard }
}