-
-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hi there!
Have anyone hosted the docs on AWS? I'm facing some problems on serving the http from a bucket.
I can use libs like http-server to run it locally without any problems. I've followed the instructions on S3 on how to host static websites, but because of the clean URL's, I had to manually change the root project.html, removing the .html extension, so my index.html could point to the correct file without the suffix. So far it kind of works, but all links only work when I navigate from the root. I can't refresh the page nor manually enter a subfolder path.
For an URL like https://docs.example.com/types/Connection, it issues errors like this:
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>types/Connection</Key>
<RequestId>...</RequestId>
<HostId>...</HostId>
</Error>
So, since the Connection folder contains an index.html file, I wonder why my S3 Bucket is not recognizing it. And why do I have to manually remove the .html extension? The index.html files are all correctly marked as text/html on their metadata.
There is a similar issue here, regarding Azure (178) but I have no siteRoot prop set.
I'd really appreciate any help!