Cloudflare is redirecting my website to https

0

Hi there,

I just setup a static jekyll website, hosted on Amazon S3, I have a number of them on there setup the same.

Anyway, the url is

http://www.djabstraction.com

For some reason this seems to work in a browser the first time, then when you restart the browser and attempt to go there again, Cloudflare starts sending back a redirect to https.

How do I stop this? I don't believe I've set anything up for this to happen.

I should add that the long amazon url still works as expected, it's just my domain name that's being redirected

http://www.djabstraction.com.s3-website-eu-west-1.amazonaws.com/

Nick.

질문됨 3년 전447회 조회
7개 답변
0

goldenmonkey wrote:
Hi there,

I just setup a static jekyll website, hosted on Amazon S3, I have a number of them on there setup the same.

Anyway, the url is

http://www.djabstraction.com

For some reason this seems to work in a browser the first time, then when you restart the browser and attempt to go there again, Cloudflare starts sending back a redirect to https.

How do I stop this? I don't believe I've set anything up for this to happen.

I should add that the long amazon url still works as expected, it's just my domain name that's being redirected

http://www.djabstraction.com.s3-website-eu-west-1.amazonaws.com/

Nick.
goldenmonkey wrote:
Hi there,

I just setup a static jekyll website, hosted on Amazon S3, I have a number of them on there setup the same.

Anyway, the url is

http://www.djabstraction.com

For some reason this seems to work in a browser the first time, then when you restart the browser and attempt to go there again, Cloudflare starts sending back a redirect to https.

How do I stop this? I don't believe I've set anything up for this to happen.

I should add that the long amazon url still works as expected, it's just my domain name that's being redirected

http://www.djabstraction.com.s3-website-eu-west-1.amazonaws.com/

Nick.
Okay not sure if I should have done this or not, but I added this to the bucket redirect configuration in S3,

[
{
"Condition": {
"KeyPrefixEquals": "https:///"
},
"Redirect": {
"ReplaceKeyWith": "http://"
}
}
]

it now works.

Edited by: goldenmonkey on Mar 20, 2021 12:29 PM

답변함 3년 전
0

Okay, it was working, now it's gone again...

Any ideas how to resolve this?

답변함 3년 전
0

it's now giving me a 403 and what looks like an IIS server error?? It's probably not IIS, but that's the only place I remember seeing that style of error, screenshot attached.

답변함 3년 전
0

Update: Contacted 123 reg, got them looking at the DNS side of things, but in the meantime, the site is literally coming up and down on its own accord,

Wasn't working like 30 mins ago. Then started working, no changes to anything, went away from my PC for a while, came back, still working, all good, then goto instagram and back again, and boom, it's down again with the server error.

Attached a screenshot of what I'm seeing in the browser now, a whole bunch of permanent redirects for some unknown reason, all coming from IIS! Are S3 websites hosted using IIS??

Edited by: goldenmonkey on Mar 20, 2021 2:32 PM

답변함 3년 전
0

Another screenshot of a ping of www.djabstraction.com, and then the CNAME that should be mapping to. Looks like it's jumping back and forth S3 and some unknown web server somewhere.

답변함 3년 전
0

Okay so the day after all that, everything seems to have finally stabilised. I believe it was actually caused by an ancient DNS record, as I owned this domain years ago, and then purchased it again just recently. I removed the bodge https redirect I put into the S3 bucket properties too. So nothing but a little time was the actual solution.

답변함 3년 전
0

Okay so the day after all that, everything seems to have finally stabilised. I believe it was actually caused by an ancient DNS record, as I owned this domain years ago, and then purchased it again just recently. I removed the bodge https redirect I put into the S3 bucket properties too. So nothing but a little time was the actual solution.

답변함 3년 전

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

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

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

관련 콘텐츠