[英]Allow site access only with domain url (AWS)
I have configured an instance on AWS, and am able to access my site with both of the following URLs: http://example.com and http://ec2-12-34-56-789.eu-west-1.compute.amazonaws.com . 我已经在AWS上配置了一个实例,并且能够使用以下两个URL访问我的网站: http: //example.com和http://ec2-12-34-56-789.eu-west-1。 compute.amazonaws.com 。
How can I disable access to the second URL and only keep only http://example.com ? 如何禁用对第二个URL的访问,仅保留http://example.com ?
When an instance is launched into a VPC, AWS provides the instance with public and private DNS hostnames if DNS hostnames are enabled for the VPC. 将实例启动到VPC中时,如果为VPC启用了DNS主机名,则AWS会为该实例提供公共和私有DNS主机名。
By default, this feature is only enabled for default VPCs and VPCs that you create using the VPC wizard in the VPC console. 默认情况下,仅对默认VPC和使用VPC控制台中的VPC向导创建的VPC启用此功能。
Your VPC setting has this feature enabled. 您的VPC设置已启用此功能。 In order to disable it, please follow the following steps:
为了禁用它,请按照以下步骤操作:
You may need to relaunch your instance in that VPC to remove the existing public DNS Name. 您可能需要在该VPC中重新启动实例,以删除现有的公共DNS名称。
For more information see Updating DNS Support for Your VPC 有关更多信息,请参阅为VPC更新DNS支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.