App service Error Page:Configure a custom HTML document that will be presented to users instead of the standard platform error page.

prabhat Kumar 1 Reputation point
2023-09-15T13:39:45.83+00:00

Hi folks

In appservice configuration setting error page setup i uploaded simple html page but for 403 and 503 error and when i stopped app service then ideally my custom page should show but that is not showing .

Please help

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,773 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 26,136 Reputation points Microsoft Employee
    2023-09-18T11:06:46.3533333+00:00

    prabhat Kumar, Based on my understanding of your scenario description, you are looking for this- How-to configure a custom error page on App Service

    App Service enables the use of custom error pages for 403, 502, and 503 error codes so you can customize your users experience.

    I understand that you have implemented this feature, but it's not working for stopped site.

    Custom error pages are for errors that terminate on the FrontEnd (ie, request that doesn't make to your app). For this case, a 404-error page is not meaningful, since when a 404 comes from the FrontEnd it means we were unable to find a site for a hostname in the first place. Once the request gets to the app it is assumed the users' can use whatever error page.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.