AWS S3静态网站端点无法访问问题排查请求
Let’s break down the most likely culprits here, even though you’ve followed the guide steps closely:
Double-check the endpoint URL accuracy
It’s easy to misspell the region or bucket name when typing manually. Head over to your S3 bucket’s Static website hosting configuration page and copy the exact endpoint URL provided there. Ensure the region in the URL matches the region where your bucket was created (e.g., if your bucket lives ineu-west-1, the endpoint should use that instead ofeu-central-1).Verify your index.html placement and naming
S3 is case-sensitive, so make sure your index file is named exactlyindex.html(no uppercase letters, no extra extensions). Also, confirm it’s stored directly in the bucket root—not tucked inside a subfolder like/assetsor/html. If it’s in a subfolder, your static website setup won’t find it unless you specify the full path in the index document field (which isn’t standard for root access).Check individual object permissions
Even with a public bucket policy, individual file ACLs can sometimes override access. Go to yourindex.htmlfile in the S3 console, open the Permissions tab, and look at the Object access control list (ACL). Ensure there’s an entry for "Everyone (public access)" with the Read permission enabled. While your bucket policy should handle this, it’s worth ruling out conflicting object-level settings.Test DNS resolution and network restrictions
Use a command likenslookup iekdosha-test1.com.s3-website-eu-central-1.amazonaws.com(orpingif allowed) to see if your network can resolve the endpoint. If it fails to return an IP address, try switching to a public DNS server (like 8.8.8.8) or testing from a different network (e.g., mobile data) to rule out local firewalls, proxies, or DNS issues blocking access.Re-validate static website hosting settings
Revisit the Static website hosting page to confirm:- The feature is set to Enable
- The hosting type is set to Host a static website
- The index document is explicitly set to
index.html(no typos or extra spaces) - You haven’t accidentally configured a redirect that’s overriding access to the root path
Confirm bucket region matches endpoint
Your bucket’s region must align with the endpoint’s region. Check your bucket’s Properties page to see its assigned region—if it’s noteu-central-1, the endpoint you’re using will point to the wrong location, resulting in a connection failure.
内容的提问来源于stack exchange,提问作者Itzhak Eretz Kdosha

