S3 Static Website with SSL error connection refused

0

I have followed this tutorial:
https://tynick.com/blog/05-30-2019/how-to-create-s3-static-website-with-https-its-so-easy/ .
Everything appears to be set up correctly.
When I access the domain name without https, the site hosted in S3 and using CloudFront is displayed as expected.

However, I have 2 issues:

  1. the request using http is not redirecting to https
  2. the request to https is giving ERR_CONNECTION_REFUSED

How can I troubleshoot this?

Removed markdown link syntax

已提问 3 年前635 查看次数
4 回答
0

After some time, the error now is

<Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>792B5983DC3E9308</RequestId> <HostId>a608mjxYCJgaFuU5LZMa7vtiOaqZwhq4ayDwelJbH0OPGc1xVokz2yOJNI2VsErrh34uaLZesuk=</HostId> </Error>
已回答 3 年前
0

After a time, I am now getting access denied even when accessing via HTTP -- because the redirect to HTTPS started working. So now my website is down, because all requests are getting this

<Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>F6B3F982FA9980FC</RequestId> <HostId>ROXWaxEtdO5sAxnezTwgaF4mA2FzfZGngX5/Ma0u+TUgRwGEYBOhv1pebFzYxtp11gZjBN5YSpA=</HostId> </Error>
已回答 3 年前
0

My bucket policy is as follows

{
"Id": "Policy1607294879754",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1607294875912",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::bucket-name-here/",
"Principal": "
"
}
]
}

已回答 3 年前
0

I had placed "/index.html" by mistake in the "Origin Path" field of the CloudFront origin. When I was double-checking all the settings, removing this value from this field and saving the origin fixed the issue.

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则