如何通过公共DNS ACCES亚马逊服务器亚马逊、服务器、DNS、ACCES

2023-09-12 23:36:22 作者:富不过三代i

我是新手,亚马逊的网络服务器。在我的Windows实例我已经安装了Apache网络服务器。当使用本地主机的浏览器,它显示了网页的工作原理,但我无法从公共DNS得到这个页面。 ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com

I am newbie to amazon webserver. On my windows instance i have installed apache webserver. When using localhost in browser it shows the page "it works" but i am unable to get this page from public DNS. ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com

推荐答案

您需要打开防火墙:

1. create a security group, such as `IIS-web-group`

2. set inbound ports

Type    Protocol    Port Range    Source
HTTP    TCP         80            0.0.0.0/0

3. assign this security group to that ec2 instance.

然后做从客户端,Telnet测试,例如计算机

Then do a telnet test from your client, such as your computer

telnet ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com 80

如果你可以远程登录,那么你应该罚款,现在访问该网站。

if you can telnet, then you should be fine to access the web site now.