Forum Discussion
Sorry Server iRule with iFiles
I think the underlying issue is i probably dont fully understand whats going on. I think i do but i probably dont...
I started with somthing like this:
https://devcentral.f5.com/tech-tips...via-ifiles
And it worked fine to display the page with a single image file.
I worked my way up to somthing like you suggested before:
https://devcentral.f5.com/tech-tips...via-ifiles
I then took the general idea from that page and simply tried to extend it to more uri's
switch [HTTP::uri] {
"/" { HTTP::respond 200 content [ifile get "index"] }
"/some-image.jpg" { HTTP::respond 200 content [ifile get "some-image"] }
"/some-other-image.jpg" { HTTP::respond 200 content [ifile get "some-other-image"] }
Ive also tried this same idea with the use of multiple elseif lines but eventually tried to use switch instead.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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