Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there is a way to display a custom error page when something goes wrong with my server farm using Application Request Routing for IIS.

For example let's assume that all my servers in my server farm goes to unhealthy status and I wish to display a friendly error message to users and not the default 502.4 - Bad Gateway error message till I found what is wrong.

Is there a way to do that?

share|improve this question
up vote 0 down vote accepted

Yes, on the ARR server, for the website that first catches the request (Default Web Site by default), set a custom error page of 502.4. You can set another one for 502.3 for timeout situations.

Note that by default it will show the detailed error message on the local server, essentially ignoring your custom page. So, either test off-box or change the custom errors settings.

share|improve this answer
Because I was testing it locally I needed also to change the Feature Settings in Error Pages. I selected Custom Error pages and the problem was solved. Thanks a lot for your answer! – ppolyzos Aug 18 '10 at 11:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.