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년 전609회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠