Forum Discussion

Bart_18836's avatar
Bart_18836
Icon for Nimbostratus rankNimbostratus
Apr 28, 2014

SorryPage with iFiles on 11.3 HF8

Here is my problem, I have uploaded files via "System ›› File Management : iFile List" , created references under "Local Traffic ›› iRules : iFile List" , wrote an iRule for maintenance page and ttached iRule to one of my virtual servers, however it seems that pictures are not loaded at all. Can you have a look and tell me what can be wrong (although all looks ok to me). All object names and file names are exactly the same to avoid mistakes or typeos in code

 

iRule code :

 

when HTTP_REQUEST {  
log local0. "HTTP_REQ: Requested Hostname: [HTTP::host] URI: [HTTP::uri]"
 if { [HTTP::uri] eq "/sp" } {
 switch [HTTP::uri] {
      "/sp" {
           HTTP::respond 200 content [ifile get "index"] "Content-Type" "text/html"
      }
      "/logo" {
           HTTP::respond 200 content [ifile get "logo"] "Content-Type" "image/png"
      }
      "/background" {
           HTTP::respond 200 content [ifile get "background"] "Content-Type" "image/jpeg"
      }
 }
 }
 }