Phil's Notes

Tagged “asp.net”

  1. Quickly Taking an ASP.NET App Offline Temporarily

  2. If you need to quickly take down an ASP.NET app for maintenance, you can simply place an HTML file called "app_offline.htm" in the app’s root directory. Whatever HTML you have inside that file will display instead of the normal app. Here’s a quick template you can use for your file:

    <!DOCTYPE html>
    <html>
    <head>
    <style>
    body {
    text-align: center;
    font-family: sans-serif;
    }
    </style>
    </head>
    <body>
    <h1>We'll be back shortly</h1>
    <p>We're sorry, this site is temporarily down for maintenance but will be back up as soon as possible.</p>
    </body>
    </html>

See all tags.