Steps:
- Copy App_Offline.htm.disabled to the website directory and move to App_Offline.htm
- Copy the application’s Web.config to Web.config.backup and move Web.config.disabled to Web.config, replacing the original
- Test that the offline page is rendered
- Deploy file system changes
- Move Web.config.backup to Web.config, replacing the temporary file
- Delete App_Offline.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Down for Maintenance</title> | |
</head> | |
<body> | |
<div> </div> | |
<div id="wrapper"> | |
<div id="page"> | |
<div id="content"> | |
<div class="box"> | |
<h2>This website is down for maintenance</h2> | |
<p> | |
We're currently undergoing scheduled maintenance. We will come back very shortly. Please check back in fifteen minutes. Thank you for your patience. | |
</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<system.web> | |
<httpRuntime waitChangeNotification="300" maxWaitChangeNotification="300"/> | |
</system.web> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true" /> | |
</system.webServer> | |
</configuration> |