Forum Discussion
irule apology page logo/image not working
I have deployed apololgy pages a bunch of times and never had any issues, but I'm running into one now.
The issue is simple, the image isn't displaying, and I can't figure out why. I have a *.htm file that has
img src="/apology.jpg" width="737" height="79" alt="" title="" /
I then have an irule that says:
if {[HTTP::header referer] eq ""} {
switch [HTTP::uri] {
"/apology.jpg" { HTTP::respond 200 content [ifile get "apology.jpg"] }
default { HTTP::respond 200 content [ifile get "access_denied.htm"] }
}
}
}
The users gets redirected to the apology page but the logo just shows a big red "x" in it. The strange thing is that if I look at the properties it shows the logo url as And if I navigate to that URL the logo displays just fine...it just doesn't display on the apology page. I've used this exact same logic for numerous apology pages and never had an issue...i'm sure it's something simple that i'm overlooking but i've been overlooking it for two days at this point so any assistance would be appreciated.
Thanks in advance
- Kevin_StewartEmployee
The first thing I'd do is log the traffic and see if the logic is correct:
if { [HTTP::header referer] eq "" } { log local0. "uri = [HTTP::uri]" switch [HTTP::uri] { "/apology.jpg" { log local0. "apology" HTTP::respond 200 content [ifile get "apology.jpg"] } default { log local0. "default" HTTP::respond 200 content [ifile get "access_denied.htm"] } } }
If you see "uri = /apology.jpg" and then "apology" in the LTM log, then you know the iRule logic is good and there's something else going on.
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