I’m using spaces with a custom domain. Normally it’s just for hosting images, but I was wondering if I could somehow make it so that if someone went directly to the domain, I could display a static web page?

I tried uploading an index.htm and index.html file to the root of the space, but it still just returns an access denied xml error when I try to visit my domain.

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
1 answer

Hello,

I believe that this is not doable with the DigitalOcean Spaces, but you could do it with the App Platform.

You can have up to 3 free static websites hosted on the App Platform:

https://docs.digitalocean.com/products/app-platform/how-to/manage-static-sites/

Here is a quick video on how to do that as well:

Hope that this helps!
Best,
Bobby