我的Web服务的自定义客户端域 [英] Custom client domains for my web service

查看:75
本文介绍了我的Web服务的自定义客户端域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web服务在弹性平衡器后面的EC2上运行.我想让我的客户将他们的A记录指向我的Web服务,以便他们的域名可以在我的服务器上.类似于shopify或github页面.

I have a web service running on EC2 behind an elastic balancer. I would like to allow my clients to point their A record to my web service so they could have their domain on my server. Similar to shopify or github pages.

但是,我不想为他们提供Web服务的IP,我希望请求通过负载平衡器处理.我怎样才能做到这一点?我应该创建一个小型服务器来转发请求吗?怎么运作的?

However, I don't want to give them the IP of the web service, I'd like the request to go though the load balancer. How can I achieve this? Should I create a small server to forward requests? How does that work?

非常感谢!

推荐答案

您需要考虑使用 Route53 ,因为您的客户的DNS服务提供商可能由于DNS规则而不支持此功能.

You need to consider using Route53 as your clients's DNS service provider might not be supporting this feature beacuse of DNS rule.

请参见 RFC 1034

Amazon为Route 53创建了一个新的别名系统.您现在可以使用Alias记录将托管区域的顶点映射到Elastic Load Balancer.当Route 53遇到Alias记录时,它将在Alias中查找与目标DNS名称关联的A记录,并从该名称返回IP地址.

Amazon created a new aliasing system for Route 53. You can now map the apex of a hosted zone to an Elastic Load Balancer using an Alias record. When Route 53 encounters an Alias record, it looks up the A records associated with the target DNS name in the Alias, and returns the IP addresses from that name.

为了让我们所有的客户都能从此新功能中受益,当目标是Elastic Load Balancer时,对别名记录的查询是免费的.

In order to allow all of our customers to benefit from this new feature, there is no charge for queries to alias records when the target is an Elastic Load Balancer.

您还可以创建使用Amazon Route 53作为DNS的子域服务,而无需迁移父域.

这篇关于我的Web服务的自定义客户端域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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