Question

best setup for static sites?

Hi, what would I need to install to setup a static site on Digital Ocean? just with html pages and a css file?


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.

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 this question here: http://www.bersling.com/2016/04/29/host-static-files-with-apache-on-digitalocean/

Basically just sudo apt-get install apache2 and replace the index.html file at /var/www/html with the html you want to serve. That’s it!

@m73mitchell, <br> <br>If I remember correctly, on Amazon, you can also host static files on CloudFront @ cheaper rates than on S3. <br> <br>RE: uploading files to your DO droplet, you can use VSFTP, SCP, Rsync, etc. It all depends on where the files are being uploaded from, among other considerations (such as security).

I’d pick your favourite distribution and put nginx on there. Then SFTP the files up to the directory. By default nginx files go in /usr/share/nginx/html/