S3静态网站上的https卡住了 [英] https on S3 static website gets stuck

查看:108
本文介绍了S3静态网站上的https卡住了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个S3存储桶,并将其设置为静态网站.

I've created an S3 bucket and made it a static website.

如果我尝试重定向(例如重定向到Google),则可以在HTTP上正常运行.例如.

If I try a redirect (e.g. to Google) it works fine for HTTP. E.g.

curl -I http://test-s3-redirect.s3-website-eu-west-1.amazonaws.com

但是对于HTTPS,它只是挂起,最终返回curl: (7) Failed to connect to test-s3-redirect.s3-website-eu-west-1.amazonaws.com port 443: Operation timed out .例如

but for HTTPS it just hangs eventually returning curl: (7) Failed to connect to test-s3-redirect.s3-website-eu-west-1.amazonaws.com port 443: Operation timed out . E.g.

curl -I https://test-s3-redirect.s3-website-eu-west-1.amazonaws.com

我在AWS > S3 > Static website hosting中选择的选项是:

  • 重定向请求
  • 目标存储区或域:www.google.com
  • 协议:https

知道为什么吗?

推荐答案

重定向协议(在本例中为HTTPS)仅定义了重定向的目标协议.您的存储桶仍无法用于HTTPS端点.

The redirect protocol (in this case HTTPS) only defines the target protocol for your redirect. Your bucket is still not available with a HTTPS endpoint.

网站端点:不支持SSL连接.

Website Endpoint: Does not support SSL connections.

Amazon网站与REST API端点之间的主要区别

如果需要SSL支持,则可以将Cloudfront发行版放在前面.

If you need SSL support, you put a cloudfront distribution up front.

这篇关于S3静态网站上的https卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆