If someone goes to port 80 of my droplet, I would like them to be redirected to my business website. How can I set that up?

Ubuntu 16.04.02 x64

Redirect to

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.

Accepted Answer

Redirex looks like it will do what you need in place of a full web server. I haven’t tried it myself, but it looks in line with your needs.

Also, a 301 redirect would be a better choice. Meta redirects are slower, break the web browsers ‘back’ button and can have negative SEO implications.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I answered my own question.

I installed lighttpd, opened port 80 in the firewall, edited /var/www/html/index.lighttpd.html so that it contained the following:

<meta http-equiv="refresh" content="0; URL=''" />

… and I’m good to go. If there is another way of doing it without using the minimal resources that lighttpd uses, please let me know.