MSK_222682
May 06, 2016Nimbostratus
Solved
Maintenance page using iFiles
Hi,
I'm trying to setup a maintenance page using iFiles. I have gone through the below link and configured iFiles, iFiles List and created an irule as mentioned below,
https://devcentral.f5.com/articles/v111-ndashexternal-file-access-from-irules-via-ifiles
iRule:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::respond 200 content [ifile get api_asia_html]
} else { discard }
}
However, after attaching the above iRule I cannot access the virtual server as it gets timed out. Not sure if I'm missing something in my irule, which calls an html page with images already embedded.
Can anyone please verify my irule and let me know what I'm missing, so that anyone accessing this virtual server should see maintenance window page.
Thanks in advance,
MSK
Hello,
this irule serve api_asia_html content when the user reach / only. It will fail if you try to reach another uri or the same uri with query parameters. Also, can you check that you bind an HTTP profile, Client SSL profile (if https) to your Virtual Server and that the VS is reachable from the location of your testing ?
You can also check the ltm logs to identify potentials issues or tcl errors.