Forum Discussion
new2f5_202717
Nimbostratus
May 18, 2015Blocking HTTP Error 500 using F5 ASM
HI, I am new to F5, so need some help here.
I have been asked to block HTTP error 500 occasionally coming from one of our applications, but I have no idea how to do it - apparently I need ASM mo...
Emad_26973
Cirrus
May 19, 2015you can do this without using ASM module. By using Irule either you can redirect to any other application page or send custom response in case of 500 RespCode.
Redirect to error Page.
when HTTP_RESPONSE {
if { [HTTP::status] eq "500" } {
HTTP::redirect "www.abc.com/error.html" }
}
Send Custom Response
when HTTP_RESPONSE {
if { [HTTP::status] eq "500" } {
HTTP::respond 200 content {
Error
Please contact support.
}
}
}
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