AWS S3虚拟主机SSL无法为索引页提供服务 [英] AWS S3 Virtual Host SSL Does Not Serve Index Page

查看:161
本文介绍了AWS S3虚拟主机SSL无法为索引页提供服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法协调AWS S3虚拟主机的问题。导航到主机名时,我需要SSL和索引页面。

I cannot reconcile a problem with AWS S3 Virtual Hosting. I require SSL and the index page to be served when navigating to the hostname.

  • Serves up index page over plain-text: http://hjr-test.s3-website-us-east-1.amazonaws.com/
  • Not accessible over SSL: https://hjr-test.s3-website-us-east-1.amazonaws.com/
  • Accesible over SSL, but does not serve index page: https://hjr-test.s3.amazonaws.com/
  • Accessible over SSL and serves explicit page: https://hjr-test.s3.amazonaws.com/index.html

有没有办法可以进行SSL访问并提供索引页面?

Is there a way I can have SSL access and serve the index page?

推荐答案

我可以说,有两种方法可以访问你的s3存储桶:

Best I can tell, there are 2 ways to get to your s3 bucket:


  • 一个普通的 s3 网址(示例2&您的问题中的4个)

  • 网站网址,提供一些额外功能(示例1和3)

  • a plain s3 url (examples 2 & 4 in your question)
  • website url which offers a few extra features (examples 1 & 3)

s3 网址支持SSL,但它只是来自存储桶的原始获取。没有花哨的东西。 网站网址支持特殊网站特定功能,例如重定向规则&自动索引页面重定向,但不是SSL。

The s3 url supports SSL, but it's just a raw "get" from the bucket. No fancy stuff. The website url supports special website-specific features like redirect rules & automatic index page redirect, but not SSL.

我不知道为什么网站网址不支持SSL。也许亚马逊还没有实现呢?也许他们希望您出于某种原因使用非特定区域的域名?也许他们希望您使用CloudFront?也许他们的蜥蜴人秘密霸主委员会已经禁止死刑。

I don't know why the website urls don't support SSL. Maybe amazon hasn't implemented it yet? Maybe they want you to use the non-region-specific domain for some reason? Maybe they want you to use CloudFront? Maybe their secret overlord council of lizard people has forbidden it on penalty of death.

我确信一旦有人向我解释,这对我来说是显而易见的。

I'm sure it will be obvious to me once someone explains it to me.

无论如何,这是我的理解,无论如何在探索之后。我对这些东西很陌生,所以拿一粒盐。

Anyway, that's my understanding anyway after poking around. I'm pretty new to this stuff, so take it with a grain of salt.

这篇关于AWS S3虚拟主机SSL无法为索引页提供服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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