Questions tagged [maintenance-mode]

Use this tag for questions about putting your application on maintenance mode and/or displaying maintenance pages to end-users. For frameworks, services, and platforms that have built-in mechanisms for doing either of those, please check if there are more specific tags that can be used, and if so, add those tags as well.

For applications that are currently live in production environments, it is a common scenario that the application would need to be temporarily unavailable to end-users, because it needs to undergo maintenance activities, such as installing software updates, patching of critical bugs, replacing or restarting certain components, or cleaning-up of files/folders or data.

For such cases, it is common practice to put the application into "maintenance mode", wherein end users accessing the application would not be able to use any of the application features, and instead would see or get an "This site is under maintenance" page or response. This prevents data corruption and bad user experience, while the application is being updated.

Please make sure to also add the tags related to the framework, library, service, or platform related to the application.

132 questions
25
votes
4 answers

AWS load balancer and maintenance page

I'm using AWS Load Balancer with 3 EC2 servers, and I'm trying to serve a Maintenance page when site is under maintenance. This page need to return 503 HTTP code, because it is a proper code for a maintenance mode and will prevent possible problems…
22
votes
6 answers

nginx maintenance page with content issue

To show maintenance page during deploy I've always used next config in nginx: if (-f /home/shared/system/maintenance.html) { return 503; } error_page 503 @maintenance; location @maintenance { root /home/shared/errors; rewrite ^(.*)$…
Wile E.
  • 1,213
  • 1
  • 12
  • 26
16
votes
7 answers

How to put an asp.net application into offlince/maintenance mode?

I've developed my first web application which, surprisingly, is getting very popular. Because the website is now live, I have a hard time doing some changes, in fear some people are still logged in and are using the application. I wish to avoid…
janhartmann
  • 14,713
  • 15
  • 82
  • 138
16
votes
3 answers

What is the proper status code for a maintenance page redirect?

While performing some upcoming maintenance, I'm going to have to redirect all site traffic to a maintenance page briefly. What's the proper status code to use for the redirect? 503 makes sense, but it's not technically a redirection status. 302 is a…
Thody
  • 1,960
  • 3
  • 23
  • 31
16
votes
2 answers

How to put a site into maintenance mode while still allowing only me to access?

I am about to upgrade my whole site and I am looking for a way to do the maintenance process, but still allowing me to access. I am thinking of using htaccess. However, that only redirects users accessing for example, index.php to maintenance.php,…
Slay
  • 1,285
  • 4
  • 20
  • 44
14
votes
7 answers

How to implement "Maintenance Mode" on already established website

I have built a website (PHP) with more than 60 pages. I have only now realized (unfortunately) that I should have built in an "In Maintenance Mode" feature to allow an admin to temporarily disable the website and point it to a Maintenance Mode page.…
justinl
  • 10,448
  • 21
  • 70
  • 88
11
votes
5 answers

Implement "Down for maintenance" page

I know we could simply use an app_offline.htm file to do this. But I want to be able access the website if my IP is 1.2.3.4 (for example), so that I can do a final testing. if( IpAddress != "1.2.3.4" ) { return Redirect( offlinePageUrl ); } How…
Anwar Chandra
  • 8,538
  • 9
  • 45
  • 61
9
votes
3 answers

How to put app into maintenance mode but still allow admins/moderatos to login and use the site?

I'd like to put my app into maintenance mode but still have admins / moderators be able to log in and use the site. Two reasons: I'm making some changes within the app that are best applied using the in-app interface rather than the…
Andrew
  • 42,517
  • 51
  • 181
  • 281
9
votes
2 answers

Is there a way to have a Heroku error/maintenance url served directly without the iframe

Heroku allows you to turn "maintenance mode" on for your applications, and also allows you to specify a custom url to be served during this period. I just tried this out and discovered that Heroku serves the custom url in an iframe. This wasn't…
jumand
  • 872
  • 8
  • 17
8
votes
3 answers

Is there anyway to put a django site into maintenance mode using fabric?

I'm currently using MaintenanceModeMiddleware to put my site into maintenance mode, but it requires you make the change in the settings.py file on the remote server. I would like to use fabric to remotely put the site into maintenance mode. Is there…
Garth Humphreys
  • 793
  • 2
  • 9
  • 16
8
votes
2 answers

Load custom maintenance page to Heroku

Heroku can display custom maintenance page: heroku config:set MAINTENANCE_PAGE_URL=http://some_server/my_page.html This requires presence of some website where the page will be always online. Could the maintenance page be loaded into Heroku once…
Paul
  • 25,812
  • 38
  • 124
  • 247
8
votes
1 answer

How to disconnect all users in sql server except sa?

I would like to disconnect all users from SQL Server except sa. The need for this is: I wrote a db maintenance utility for my ERP. Before running it I need to ask all users to logoff. So somehow I would like to give them a message (through ERP)…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
7
votes
3 answers

How do I take a .NET site down for maintenance?

I have an ASP.NET site that I'm going to have to take down to make some major structural updates to, and I was wondering how I should go about it from the client-side perspective. I have heard of an App_Offline.htm file or something like that, but…
Jason
  • 51,583
  • 38
  • 133
  • 185
7
votes
5 answers

How do you update your web application on the server?

I am aware of Capistrano, but it is a bit too heavyweight for me. Personally, I set up two Mercurial repositories, one on the production server and another on my local dev machine. Regularly, when a new feature is ready, I push changes from…
caustic
  • 1,749
  • 2
  • 16
  • 7
6
votes
1 answer

How to handle maintenance process with React

Here is my app’s current way to handle the maintenance process: I have an environment variable for the app status: REACT_APP_SITE_MODE=“LIVE” | “MAINTENANCE” I'm using react-router for routing the app: switch (process.env.REACT_APP_SITE_MODE) { …
vuongvu
  • 811
  • 6
  • 15
1
2 3
8 9