AWS多个域指向同一服务器 [英] AWS Multiple domains pointing to same server

查看:109
本文介绍了AWS多个域指向同一服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建将提供给多家公司的解决方案。任何公司都必须将其域(或只是一个子域)指向我的服务器,然后我将向其客户处理页面。

I'm building a solution that will be provided to several companies. Any company will have to point their domains (or just a sub-domain) to my server and then I'll handle pages to their customers.

我正在对其进行测试使用以下配置:

I'm testing it with the following config:


  • CustomerABC.com指向一个托管区域进入Route 53

  • CustomerDEF .com指向Route 53中的另一个托管区域

  • 两个托管区域都有一条指向同一EC2服务器实例的A记录

也就是说,每个想要使用我的服务的客户都必须将其域的DNS更改为我在Route53中自己的托管区域。我的服务器可以处理许多域。

That said, every customer that wants to use my service will have to change its domain's DNS to his own hosted zone in my Route53. My server will handle many domains.

我不想为每个新客户创建一个新的托管区域。有什么方法可以达到相同的结果吗?

I'd like not having to create a new hosted zone for every new customer. Is there any way to achieve the same result?

推荐答案


  1. 放入电子负载均衡器在应用程序实例的前面(即使您一开始只使用一个实例)。

  2. 使用您的域(区域不必托管在Route53上),创建一个CNAME(或ALIAS)记录(例如myapp.example.com)和将其指向您的负载均衡器的域名

  3. 只需告诉您的客户使用CNAME您的应用程序DNS名称的子域

  1. Put Elactic Load Balancer in front of your application instance (even if you will use only one instance at the beginning).
  2. Using your domain (the zone does not have to be hosted on Route53), create one CNAME (or ALIAS) record (for example myapp.example.com) and point it to your load balancer's domain name.
  3. Simply tell your customers to CNAME their subdomain to your app dns name

这篇关于AWS多个域指向同一服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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