I've created an S3 bucket and made it a static website.
If I try a redirect (e.g. to Google) it works fine for HTTP. E.g.
curl -I http://test-s3-redirect.s3-website-eu-west-1.amazonaws.com
but for HTTPS it just hangs eventually returning curl: (7) Failed to connect to test-s3-redirect.s3-website-eu-west-1.amazonaws.com port 443: Operation timed out
. E.g.
curl -I https://test-s3-redirect.s3-website-eu-west-1.amazonaws.com
The options I chose in AWS > S3 > Static website hosting were:
Any idea why?
The redirect protocol (in this case HTTPS) only defines the target protocol for your redirect. Your bucket is still not available with a HTTPS endpoint.
Website Endpoint: Does not support SSL connections.
Key Differences Between the Amazon Website and the REST API Endpoint
If you need SSL support, you put a cloudfront distribution up front.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With