Reputation: 577
I'm using Digital Ocean Spaces CDN to host a static website, so far so good, if I it my index.html
everything is working as expected.
The problem I'm facing now, is that if the user hit any path which that is not index.html
it gets back an Access Denied error.
I've looked inside the Digital Ocean Spaces CDN Settings and found nothing about redirecting on wrong url/path
Is there a way I could achieve that?
I would need a service like cloudflare in front of my CDN?
Sorry, but looking around on the web got me nowhere so far.
Upvotes: 2
Views: 1749
Reputation: 1289
You can use an app "static site" configuration. This adds default /index.html reading when deployed multiple files.
Upvotes: 0
Reputation: 126
You need to check a couple of things:
DO Spaces does not support static page hosting (if someone visits your domain, you cant make redirection from "/" to "/index.html". IMO that's big no no. If you want free static hosting, just use https://www.netlify.com/ or git hosts (Github and Gitlab).
Upvotes: 3