英文:
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).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论