ASP.NET 2.0 - How to use app_offline.htm

后端 未结 7 1507
温柔的废话
温柔的废话 2020-11-28 20:24

I\'ve read about the app_offline.htm file which can be placed within the root of a .NET 2.0 application which will in essence shut down the application and disa

相关标签:
7条回答
  • 2020-11-28 21:25

    Note that this behaves the same on IIS 6 and 7.x, and .NET 2, 3, and 4.x.

    Also note that when app_offline.htm is present, IIS will return this http status code:

    HTTP/1.1 503 Service Unavailable
    

    This is all by design. This allows your load balancer (or whatever) to see that the server is off line.

    0 讨论(0)
提交回复
热议问题