Forum Discussion
6 Replies
Sort By
- Michael_YatesNimbostratusYou have several different options, I haven't included all of them... You can find more in the CodeShare:
when HTTP_RESPONSE { if { [HTTP::status] == "403" } { HTTP::respond 200 Loccation "http://www.customerrorpage.com" } elseif { [HTTP::status] == "404" } { HTTP::respond 200 Loccation "http://www.customerrorpage.com" } }
when HTTP_RESPONSE { if { [HTTP::status] == "403" } { HTTP::redirect "http://www.customerrorpage.com" } elseif { [HTTP::status] == "404" } { HTTP::redirect "http://www.customerrorpage.com" } }
when HTTP_RESPONSE { if { [HTTP::status] == "403" } HTTP::respond 200 content "Forbidden Website Error: Forbidden NOTICE: Website has experienced an error. " } elseif { [HTTP::status] == "404" } { HTTP::respond 200 content "File Not Found Website Error: File Not Found NOTICE: Website has experienced an error. " } }
- Michael_YatesNimbostratusThe first two seem to have blown up during the first post:
when HTTP_RESPONSE { if { [HTTP::status] == "403" } { HTTP::respond 200 Loccation "http://www.customerrorpage.com" } elseif { [HTTP::status] == "404" } { HTTP::respond 200 Loccation "http://www.customerrorpage.com" } }
when HTTP_RESPONSE { if { [HTTP::status] == "403" } { HTTP::redirect "http://www.customerrorpage.com" } elseif { [HTTP::status] == "404" } { HTTP::redirect "http://www.customerrorpage.com" } }
- Benjamin_9120NimbostratusThanks for all helps。 But,those error code was returned form web server, all server is down,Who returns the error code at this time?
- Rab_101866NimbostratusAre you tring to return an error page when all servers in your pool are down?
- Rab_101866Nimbostratus
- Rab_101866NimbostratusNot sure why the link is not coming out correctly.