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

gefragt vor 3 Jahren644 Aufrufe
4 Antworten
0

After some time, the error now is

<Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>792B5983DC3E9308</RequestId> <HostId>a608mjxYCJgaFuU5LZMa7vtiOaqZwhq4ayDwelJbH0OPGc1xVokz2yOJNI2VsErrh34uaLZesuk=</HostId> </Error>
beantwortet vor 3 Jahren
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>
beantwortet vor 3 Jahren
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": "
"
}
]
}

beantwortet vor 3 Jahren
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.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen