Forum Discussion
Bart_18836
Apr 28, 2014Nimbostratus
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 ttac...
nitass_89166
Noctilucent
There is no issue with CaSe , I have confirmed it by rewriting code and uploading files again with lower case names
since there is if-statement (HTTP::uri eq /sp) before switch, /logo and /background won't hit the switch-case (because it is not equal to /sp).
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"
}
}
}
Bart_18836
May 19, 2014Nimbostratus
I will test it today , but then all request will go to sorrypage and I wanted to specify some URI so I can test if that sorrypage works or not while not affecting production (I can test it on seperate vip though). But if I still want to test on the same vip, then if I replace "eq" with "start_with" and in my "switch" sections I change /logo and /background to /sp/logo and /sp/background (before that I will have to edit my html code of course) , will this actually work ?
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