Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

A site for multi-domain Maintenance Situations

This is used for when we need to disable the entire site and point the DNS somewhere else.

This is an Express JS app that will take URLs and then return the maintenance site based on the url.

You can read an in-depth use case for this on Peter's site.

Install and running this

  1. $ git clone
  2. $ cd maintenance-mode
  3. npm install
  4. npm start
    • This will ask you for your password as the Express server runs on port 80 which requires root.

Testing this locally

To test this locally you can set up host updates. This will make it so that whenever you navigate to a url that you specify it will go to the instead.

This method could also be used to test the production version. Just replace the with the public IP where this Express app lives online.

Setting up your hosts file.

  1. $ cd /etc/
  2. $ sudo nano hosts
  3. Paste the example below where you feel it makes sense.
  4. Save and close
    1. control + x
    2. y


An Express app using Pug that will display differently branded "outage" sites based on the domain requesting it.



No releases published


No packages published
You can’t perform that action at this time.