Google Cloud Platform Bucket:通过https通过自定义域提供内容 [英] Google Cloud Platform Bucket: serving content with custom domain over https

查看:101
本文介绍了Google Cloud Platform Bucket:通过https通过自定义域提供内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个名为app.example.com的存储桶,并分配了DNS记录以指向该存储桶.网站(存储桶中的内容)可在http://app.example.com上找到.

I have created a bucket, named app.example.com, and assigned DNS records to point to that bucket. Website (contents of the bucket) is available on http://app.example.com.

现在我需要通过https投放它.

Now i need it to be served over https.

  1. 我已经创建了负载均衡器
    • 带有后端存储桶",它指向example.com存储桶.选项启用Cloud CDN"已选中.
    • 具有主机和路径规则"选项:
      • 主机:`app.example.com
      • 路径:/*
      • 后端:指向后端存储桶"
  1. I have created load balancer
    • with "backend bucket", which is pointint to the example.com bucket. Option "Enable Cloud CDN" checked.
    • with "Host and path rules" options:
      • Hosts: `app.example.com
      • Paths: /*
      • Backends: pointing to the "backend bucket"

仍然,内容通过http提供,如果我尝试使用https,浏览器会抱怨安全性.

Still, content is served over http and if i'm trying to use https, browser complains about security.

推荐答案

听起来您已经配置了DNS,这样app.example.com CNAME记录指向了Cloud Storage.相反,您需要一个app.example.com A记录,指向您的负载均衡器的IP地址.

It sounds like you've configured DNS such that an app.example.com CNAME record points to Cloud Storage. Instead, you need an app.example.com A record that points to your load balancer's IP address.

这篇关于Google Cloud Platform Bucket:通过https通过自定义域提供内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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