Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created November 5, 2017 17:19
Show Gist options
  • Save dlangille/ddbddf6762342cf3f62b4951595e37b4 to your computer and use it in GitHub Desktop.
Save dlangille/ddbddf6762342cf3f62b4951595e37b4 to your computer and use it in GitHub Desktop.
offline website
<?php
header("HTTP/1.1 503 Service Unavailable");
?>
<html>
<body>
<p>
Sorry, the website is offline from 2017-11-05 17:01, for approximately 3 hours.
<p>
It is now <?php echo gmdate("Y-m-d H:i");?>.
</body>
</html>
<VirtualHost *>
ServerAdmin dan@langille.org
DocumentRoot /usr/websites/offline/www
ServerName www.freshports.org
ServerAlias freshports.org
ServerAlias supernews.freshports.org
ServerAlias freshsource.org
ServerAlias www.freshsource.org
ErrorDocument 404 /index.php
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment