Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 无法通过AWS windows实例上的公共IP访问站点_Amazon Web Services_Amazon Ec2 - Fatal编程技术网

Amazon web services 无法通过AWS windows实例上的公共IP访问站点

Amazon web services 无法通过AWS windows实例上的公共IP访问站点,amazon-web-services,amazon-ec2,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. Wh

我是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. 

上个月,我在Server2012的8080上安装了一个IIS服务器,所以我可以从内存中运行它。假设您可以在8080上正常运行服务器,那么只需做几件事:

  • 确保公共IP在VPC上正确路由,我认为在默认的VPC中这是一个给定的路由

  • 检查安全组,确保在适当的端口上对您的公共IP开放

  • 打开服务器上的防火墙。这为我做到了:
    newnetfirewallrule-DisplayName http-8080-Action Allow-Direction Inbound-Description“Allow port 8080 Inbound for http”-协议TCP-LocalPort 8080

  • 它应该会起作用


    是在命令行中验证1和2所需的命令的摘要

    如果大家有兴趣为这些类型的问题创建一个讨论场所,请帮助支持a的提案。请澄清您的配置好吗?您的网站是否托管在标准HTTP端口80上?如果是这样,您的安全组将需要允许在端口80上进行入站访问。你所说的“我可以访问该站点”是什么意思?你可以从哪台机器通过专用IP访问?它是从同一台服务器上访问的吗?任何你能解释的东西都会有帮助!我可以通过像(localhost)这样的私有机器访问托管机器上的站点。是的,那是同一台服务器。