Reputation: 2587
I have a directory like this:
/example.com/
index.html
foo/
index.html
The index document is set to index.html
, so when the url is https://example.com
, it shows /example.com/index.html
.
Also, I wanna show /example.com/foo/index.html
when the url is https://example.com/foo
.
How can I do this?
Upvotes: 1
Views: 2409
Reputation: 269360
If you have activated Static Website Hosting on your S3 bucket, and have configured index.html
as your default page, this will work automatically.
(source: amazon.com)
To test this, I did the following:
foo
directoryindex.html
file to the foo
directory and made it public/foo
It looked like:
http://my-bucket.s3-website-ap-southeast-2.amazonaws.com/foo
The index page came up just fine.
By the way, it redirected me to /foo/
.
Upvotes: 4