大网数据广告活动
服务器运维问答

Redirecting multiple subdomains to a static site on Google Cloud Storage with Cloud DNS

· 52CE 我爱测

I am trying to migrate my website from a wordpress site to a static site. I have added all my static assets to a bucket on google cloud storage and successfully pointed static.mildfuzz.com to that bucket using a CNAME . All is go…

问题原文

原帖链接 · Mild Fuzz · CC BY-SA 3.0

I am trying to migrate my website from a wordpress site to a static site.

I have added all my static assets to a bucket on google cloud storage and successfully pointed static.mildfuzz.com to that bucket using a CNAME. All is good.

How can I redirect both mildfuzz.com and www.mildfuzz.com to the same bucket? My thought was to use ALIAS or URL, but they do not seem available using Google Cloud DNS service. I then thought maybe use a CNAME, but I was concerned that assigning a CNAME to mildfuzz.com would mess with my MX records.

At the moment my static site is also being served by a Compute Engine VM, so that I can use an A record pointing to an IP, but I would very much like to be able to turn this VM off, as that is the point of switching to a static site in the first place!

已采纳解答

原帖链接 · Nicholas · CC BY-SA 3.0

At the moment, there is no real way of routing multiple domains including a naked domain to a single bucket with the use of Cloud DNS that applies globally.

Cloud DNS does not currently offer ALIAS or URL records and the using a CNAME record will likely affect your MX records.

This seems like an excellent feature. I would suggest filing a feature request on the Google Cloud Platform public issue tracker with the Product-CloudDNS label. Feel free to comment with a link if you do so here so others can follow through and support the request.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。