Question

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.

Thanks


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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.