AWS lightsail + Cloudflare入站安全组



我将DNS指向lightsail AWS ip,但我仍然得到错误524,我看到了一个关于[输入链接描述][1]的视频

我试过了,但它只适用于EC2,我错过了什么?[1]: https://www.youtube.com/watch?v=VZvEkWagoc0

我做了curl -i nairametrics.com,结果如下:

HTTP/1.1 301 Moved Permanently
Date: Sun, 17 Jan 2021 03:03:12 GMT
Content-Type: text/html; charset=iso-8859-1
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=ddcd0fa70148de3e620861c404ece852d1610852591; expires=Tue, 16-Feb-21 03:03:11 GMT; path=/; domain=.nairametrics.com; HttpOnly; SameSite=Lax
Location: https://nairametrics.com/
CF-Cache-Status: DYNAMIC
cf-request-id: 07afe4ff280000df24f6854000000001
Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report?s=J%2BqqT71RtS4n86tBwXNSNsRn2%2BlFNBO7zgzAzXAFcUF02JfxC54cvggI2SZZ8Re17YbSrAbBT1NT%2Fl1K7%2BQkVkuUNoIm1IyowQMAcWTLhzYX"}],"group":"cf-nel","max_age":604800}
NEL: {"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 612cd7784a2fdf24-MEL
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://nairametrics.com/">here</a>.</p>
</body></html>

你可以看到你被重定向到HTTPS。因此,如果您的应用程序没有设置为处理HTTPS,您将超时。

在链接中,您可以获得更多关于light-scale及其HTTPS的信息:

  • Lightsail中的SSL/TLS证书

最新更新