big*_*erd 5 yum basic-authentication amazon-web-services amazon-cloudfront
我试图将 CloudFront 发行版放在使用基本 http 身份验证的 Yum (RPM) 存储库前面。我已经设置了带有 HTTPS 的 CloudFront 分配,从 HTTP 重定向到 HTTPS,具有以下值:
Origin: yum.mydomain.com
Origin ID: smp-yum.mydomain.com
Run Code Online (Sandbox Code Playgroud)
注意:smp-yum.mydomain.com 目前不存在,我不确定是否需要?
出于测试目的,我严格使用 abcdefgh.cloudfront.net 域。
我在尝试访问 URL 时收到以下错误:
CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.
Run Code Online (Sandbox Code Playgroud)
因为我知道主机已启动,并且接受来自公共互联网的连接,所以我只能假设这是由于 http 基本身份验证所致。
我还尝试通过以下方式将凭据包含到请求中
https://username:password@yum.mydomain.com/repo/url
Run Code Online (Sandbox Code Playgroud)
我想这是一个由两部分组成的问题:是否可以使用 HTTP 基本身份验证?如果是这样,是否有一些标题或我需要自定义的内容才能使其正常工作?
| 归档时间: |
|
| 查看次数: |
4351 次 |
| 最近记录: |