AWS Route 53 – 设置转发到 Google 站点

huangapple go评论54阅读模式
英文:

AWS Route 53 - Setting up forwarding to a Google site

问题

我的域名 campusrover.org 托管在 Route53 上。它有一个主域名 foo.org,以及一长串子域名 abc.foo.org,都在 Route53 上。

使用 A 记录,它将访问发送到 foo.org 到一个 S3 域,这似乎很简单。

这可能是一个愚蠢的问题,但我如何设置它以将访问转发到 Google 网站的 URL?例如,https://sites.google.com/enterprise.com/foobar

英文:

My domain name campusrover.org is hosted on Route53. It has a main domain name foo.org, and a long series of subdomains abc.foo.org, all on Route53.

Using an A record, it sends visits to foo.org to an S3 domain, which seems straightforward.

This is probably a dumb question but how do I set it up to forward visits to a Google site URL? e.g. https://sites.google.com/enterprise.com/foobar

答案1

得分: 2

DNS 用于将 DNS 名称(例如 foo.org)解析为 IP 地址。然后,实际的 HTTP 请求发送到该 IP 地址。

DNS 不包括路径,因此无法使用 DNS 指向 https://sites.google.com/enterprise.com/foobar

您需要在 foo.org 上拥有一个 API 或 Web 服务器,以将请求重定向到其他地方(例如 foo.org/magic-word/foobar 将返回一个重定向指令给您的 Web 浏览器,指向 https://sites.google.com/enterprise.com/foobar)。

英文:

DNS is used to resolve a DNS Name (eg foo.org) to an IP address. Then, the actual HTTP request is sent to that IP address.

DNS does not include paths, so it is not possible to use DNS to point to https://sites.google.com/enterprise.com/foobar.

You would need an API or webserver listening at foo.org to redirect the request to somewhere else (eg foo.org/magic-word/foobar would send back a Redirect instruction to your web browser to point to https://sites.google.com/enterprise.com/foobar).

huangapple
  • 本文由 发表于 2023年5月14日 08:11:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76245337.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定