Website Endpoints - Amazon Simple Storage Service
Website Endpoints - Amazon Simple Storage Service
Website endpoints
PDF (/pdfs/AmazonS3/latest/userguide/s3- RSS (s3-userguide-rss-
userguide.pdf#WebsiteEndpoints) updates.rss)
These URLs return the default index document that you configure for the
website. For a complete list of Amazon S3 website endpoints, see Amazon
S3 Website Endpoints
(https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_end
points) .
Note
To augment the security of your Amazon S3 static websites, the
Amazon S3 website endpoint domains (for example, s3-website-
us-east-1.amazonaws.com or s3-website.ap-south-
1.amazonaws.com) are registered in the Public Suffix List (PSL)
(https://publicsuffix.org/) . For further security, we recommend
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteEndpoints.html 1/5
28/6/24, 22:04 Website endpoints - Amazon Simple Storage Service
that you use cookies with a __Host- prefix if you ever need to
set sensitive cookies in the domain name for your Amazon S3
static websites. This practice will help to defend your domain
against cross-site request forgery attempts (CSRF). For more
information see the Set-Cookie
(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-
Cookie#cookie_prefixes) page in the Mozilla Developer Network.
If you want your website to be public, you must make all your content
publicly readable for your customers to be able to access it at the website
endpoint. For more information, see Setting permissions for website
access (./WebsiteAccessPermissionsReqd.html) .
Important
Amazon S3 website endpoints do not support HTTPS or access
points. If you want to use HTTPS, you can use Amazon
CloudFront to serve a static website hosted on Amazon S3. For
more information, see How do I use CloudFront to serve HTTPS
requests for my Amazon S3 bucket?
(https://aws.amazon.com/premiumsupport/knowledge-
center/cloudfront-https-requests-s3) To use HTTPS with a custom
domain, see Configuring a static website using a custom domain
registered with Route 53
(https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-
hosting-custom-domain-walkthrough.html) .
Topics
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteEndpoints.html 2/5
28/6/24, 22:04 Website endpoints - Amazon Simple Storage Service
To request a specific object that is stored at the root level in the bucket,
use the following URL structure.
http://bucket-name.s3-
website.Region.amazonaws.com/object-name
For example, the following URL requests the photo.jpg object that is
stored at the root level in the bucket.
http://example-bucket.s3-website.us-west-
2.amazonaws.com/photo.jpg
To request an object that is stored in a folder in your bucket, use this URL
structure.
http://bucket-name.s3-
website.Region.amazonaws.com/folder-name/object-name
http://example-bucket.s3-website.us-west-
2.amazonaws.com/docs/doc1.html
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteEndpoints.html 3/5
28/6/24, 22:04 Website endpoints - Amazon Simple Storage Service
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteEndpoints.html 4/5
28/6/24, 22:04 Website endpoints - Amazon Simple Storage Service
© 2024, Amazon Web Services, Inc o sus afiliados. Todos los derechos reservados.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteEndpoints.html 5/5