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?
If you have activated Static Website Hosting on your S3 bucket, and have configured index.html
as your default page, this will work automatically.
To test this, I did the following:
foo
directory index.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/
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.