By Andy Deglado
Ubuntu 16.04.02 x64
Redirect to www.apollos-dev.com
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!
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.
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:
<html>
<head>
<meta http-equiv="refresh" content="0; URL='http://mydomain.com'" />
</head>
<body>
</body>
</html>
… 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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.