Website offline message whilst resizing?

Are there any options to display a message to visitors whilst a droplet it powered off during a resize?

Some sort of temporary redirect to a different droplet perhaps?

Just curious if there are any options.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Ryan Quinn
DigitalOcean Employee
DigitalOcean Employee badge
March 8, 2018
Accepted Answer

There isn’t a service for this available by default. Since your domain points directly to your droplet’s IP address, if a request comes in for the domain while your droplet is powered off during a resize there is nothing at that IP address to answer. One way you could achieve this would be to use another droplet as an nginx reverse proxy using the proxy_pass directive in your nginx configuration.

With this you would point your domain to the nginx proxy and it would request the data from your application server. You can also set up caching on the nginx proxy if you want which would reduce the load on your app server. With this configuration, if the droplet running your app were to go down it would trigger the nginx proxy to return a 502 error indicating that it could not reach the upstream service. By creating a custom 502 error page you could then display the page of your choice automatically anytime your app server is unavailable for any reason.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel