AWS窗口实例上的公共IP无法访问站点

时间:2016-12-19 00:37:51

标签: amazon-web-services amazon-ec2

我是AWS控制台的新手。我正在尝试托管我的网站,以便在AWS ec2 windows实例上进行测试。但它显示错误(长时间反应)。

我过去主持网站的步骤:

 1. Added a custom tcp rule in AWS console with all ip and port is 8080.
 2. Host the website on IIS and bind with the IP address and port. But site is not accessed by it.

When I change the public ip to private IP so I am able to access the site only its local. 

1 个答案:

答案 0 :(得分:0)

我在上个月在Server 2012上的8080上设置了一个IIS服务器,所以我可以从内存中运行它。假设您可以在8080上正确获得服务器运行器,那么只需做几件事:

  1. 确保公共IP在VPC上正确路由,我认为在默认的VPC中是给定的。

  2. 检查安全组并确保在apporopriate端口上打开您的公共IP。

  3. 打开服务器上的防火墙。这样做对我来说:New-NetFirewallRule -DisplayName http-8080 -Action Allow -Direction Inbound -Description "Allow port 8080 inbound for http" -Protocol TCP -LocalPort 8080

  4. 它应该有效!

    https://gist.github.com/farrellit/9b0de7d0e77f144c6786fce71badc341是在命令行验证1和2所需命令的摘要。