Question

How to configure a static website from a DO space

Posted September 1, 2020 2.1k views
CDNDigitalOcean Spaces

I wanted to see if it anyone has hosted a static website from a DO space using a custom domain. For comparison, I’d like to see how we can achieve this similarly to how you might do this with an S3 bucket: https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html

Any ideas? Thanks!

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.

×
Submit an Answer
2 answers

Hey @hakawati,

I believe that this is not yet possible out of the box. You could use a small Droplet with Ngnix and upload your static website there.

But this is a great idea, sounds like it’d be super useful!

It looks like someone has had the same idea before and has posted it on our Product Ideas board. The best thing to do would be to head over and add your vote to it, as well as adding any additional information in the comments for exactly what you’d like to see implemented!

https://ideas.digitalocean.com/ideas/DO-I-318

Hope that helps!
- Bobby.

  • Hi,

    I need to either know how to enable CDN for static website running on droplet , or need to know how can i serve the static site from DO s3 space with CDN enabled , because the latency from china to New York is too much. The site will be slow without CDN

Why not host your static site on DO app?