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
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
dragonflymr
Feb 18, 2016Cirrostratus
Hi 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 }
}