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
5
votes
5 answers

Rewrite rule for "site down" pages

I was trying to install this .htaccess to notify my users of site maintenance. It seems the first [L] isn't working and the second rewrite is doing everything. How do you guys do site maintenance messages? RewriteEngine on RewriteRule ^s/down$…
Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213
3
votes
8 answers

Disable (Politely) a website when the sql server is offline

I work at a college and have been developing an ASP.NET site with many, many reports about students, attendance stats... The basis for the data is an MSSQL server DB which is the back end to our student management system. This has a regular…
PeteT
  • 18,754
  • 26
  • 95
  • 132
3
votes
2 answers

How to use a maintenance.php file inside a WordPress theme?

I was wondering if anyone knows a way to use a maintenance.php file inside your WordPress theme, instead of the one in the wp-content folder. I'm mainly looking for some code for the functions.php file which would call the maintenance.php file in…
ProxxiM
  • 43
  • 6
3
votes
1 answer

LARAVEL 5: Change default maintenance (503) view path

When server is down, for every request MaintenanceModeException is thrown and resources/views/errors/503.blade.php is rendered. I'm trying to change it's path but can't figure out where is that exceptions treatment and 503 response.
Matheus Simon
  • 668
  • 11
  • 34
3
votes
1 answer

Avoiding redirect loop

I am finished setting up a maintenance function on my webpage. This is the index.php code
Xsef
  • 53
  • 7
3
votes
2 answers

How to add a custom "under maintenance" page?

I'm trying to add a custom page to my web application for the times I'm performing maintenance. I'm trying to test the referred page on my development environment but the Symfony page always appears. I had already created a module with a proper…
Rui Gonçalves
  • 2,423
  • 6
  • 30
  • 42
3
votes
5 answers

Site in maintenance. How to redirect visitors?

My PHP site in maintenance. How to redirect visitors to a "site in maintenance" single page? I heard something about app_offline.htm for ASP.NET. Is there something similar for PHP? I want that every page from "mysite.com" be redirected to…
serhio
  • 28,010
  • 62
  • 221
  • 374
3
votes
1 answer

How to implement maintenance mode for Heroku API

I want to use the maintenance mode on Heroku. But for an API, the maintenance mode does not seem to work. My API calls are stopped in their tracks because there is no header 'Access-Control-Allow-Origin' present. So there is no way to know if the…
Matt
  • 800
  • 1
  • 7
  • 15
2
votes
2 answers

Nginx not loading custom maintenance page under @maintenance directive?

I am trying to use Nginx to redirect to a custom maintenance page, with it's own CSS/JS, when a maintenance file exists on the system. However, it just shows me the standard Nginx 503 redirect page? location / { if (-f…
RPH
  • 45
  • 8
2
votes
1 answer

Laravel maintenance mode --allow ip not working

I am trying to allow my public internet ip through maintenance mode in laravel on a vps. Does the --allow command works over internet or does it work only on the localhost? Because I cannot get pass the maintenance mode page with the following…
Victordb
  • 519
  • 1
  • 11
  • 25
2
votes
3 answers

Maintenance mode strategy with SEO in mind

What are considered the best practices when putting your site in maintenance during an update? I'm asking because i'm not very fond of having a site with over 60k indexed pages in google throwing a 404 header actually telling Google that the sites…
ChrisR
  • 14,370
  • 16
  • 70
  • 107
2
votes
0 answers

Magento maintenance mode disable

I have a magento eshop and I get maintenance mode only on product page. There is no maintenance.flag file in root I have cleared my cache and session I dont have a maintenance extension installed I have deactivated all of the extensions so as to…
Sofia K.
  • 113
  • 7
2
votes
1 answer

How is memcache.incr() affected by App Engine maintenance periods?

I'm working on an application that will run on Google App Engine. I would like it to respond gracefully to App Engine maintenance periods. According to the documentation, memcache will simply not store or retrieve data during maintenance…
Luke Francl
  • 31,028
  • 18
  • 69
  • 91
2
votes
1 answer

Can app_offline.hml be localized?

We can use app_offline.html as a landing page for the period of a maintenance work. But is it possible to localize this page?
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
2
votes
1 answer

Any method to gracefully remove website visitors before maintenance?

Is there any way to gracefully remove visitors from a site rather than just putting the site into maintenance and booting everybody out? In particular I am thinking of an eCommerce site where there might be carts open, or even checkouts in progress,…
byronyasgur
  • 4,627
  • 13
  • 52
  • 96
1
2
3
8 9