Customize "service unavailable" error page

Discussion in 'General troubleshooting' started by golnaz, Apr 20, 2010.

  1. How to customize "service unavailable" error page?

    Is it possible to customize "service unavailable" error page in web.config?
    I wrote the following code in web.config :

    <customErrors mode="RemoteOnly" defaultRedirect="~/static/errors/error.html">
    <error statusCode="503" redirect="~/static/errors/busy.html" />
    </customErrors>

    but still the default error page is shown instead of my custom error page, what's the problem?
     
  2. Hi,
    It is possible to send a 503 message to search engines with the IIS7 URL rewrite.
    (Search iis.net for some tricks)
    I think however that doing this as a result of server maintenance, 503, on our shared sites requires server debug methods we don't have access to.
    All the best,
    Mark
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    I don't think you can customize the "Service Unavailable" error because it is handled by HTTPSys, ie. the request won't even get to ASP.NET.
     
  4. @wisemx: Thanks for your response.

    @bruce: So, isn't there any other solution to change "service unavailable" message to any other messages like "The server is too busy, try later"?
    Could I ask support to change this message for my website?
    Thanks,
     
  5. mjp

    mjp

    I am afraid that we cannot change the error message for one account.
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    I don't even think that message is customizable at all.
     
  7. mjp

    mjp

    Well, there you have it. Sorry golnaz.
     

Share This Page