Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Forked from pitch-gist/gist:2999707
Last active November 1, 2015 10:53
Show Gist options
  • Save v-thomp4/3fedf860a35a4f08ff83 to your computer and use it in GitHub Desktop.
Save v-thomp4/3fedf860a35a4f08ff83 to your computer and use it in GitHub Desktop.
maintenance page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
<article>
<h1>We&rsquo;ll be back soon!</h1>
<div>
<p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. If you need to you can always <a href="mailto:#">contact us</a>, otherwise we&rsquo;ll be back online shortly!</p>
<p>&mdash; The Team</p>
</div>
</article>
location / {
index index.php;
try_files $uri $uri/ /index.php?$args;
if (-f /var/www/mainsite/rc_mainsite/maintenance.html) {
return 503;
}
}
error_page 503 @maintenance;
location @maintenance {
rewrite ^(.*)$ /maintenance.html break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment