Use of app_offline.htm in ASP.

Source: Internet
Author: User

Some time ago, system upgrade, because the system update release time is longer, so must stop the site to update. Cause a lot of users to feedback system can not access, also think the site was hacked.

So after that thing we're thinking about how to do it without downtime and heat deployment.
In a single-machine environment (dual or distributed systems do not consider this problem), app_offline.htm is a good choice,

When ASP. NET sees the app_offline.htm file in the application, it closes the application's App-domain and then sends the request to the App_offline content.

So, in the maintenance, upgrade time, you do not have to stop your Web application, but a friendly way to prompt the user, this site is updating the hint, so the experience will be more friendly.

1. Create a app_offline.htm htm paging file,

2. Place the app_offline.htm in the root directory of your Web site. In this way, any external request will be transferred to the page immediately.

It is important to note that:
(1) app_offline.htm cannot be less than 512 bytes.
(2) IIS sites and process pools do not need to be stopped.
(3) only requests to the. aspx file are automatically forwarded to the app_offline.htm file, and if the. htm,. asp, etc. files are requested, they will not go to app_offline.htm

Use of app_offline.htm in ASP.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.