通过公共IP无法访问网站的EC2实例 [英] Can't access site on EC2 instance via public ip

查看:2010
本文介绍了通过公共IP无法访问网站的EC2实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试与EC2几天,并已撞我的头简直甚至能够访问我主持的示例站点。该堆栈的Rails 3.1.3薄和Nginx的。

I've been experimenting with EC2 for a couple days and have been banging my head against simply even being able to access the sample site I've hosted. The stack is Rails 3.1.3 with Thin and Nginx.

我已经尝试了几种不同的配置和终于结束了运行Nginx的自动安装脚本,它不会返回一个网页,当我做卷曲<一个href="http://ec2-107-20-143-179.compute-1.amazonaws.com/">http://ec2-107-20-143-179.compute-1.amazonaws.com/.然而,当我点我的浏览器那里,它永远挂之前说的页面无法找到。

I've tried several different configurations and finally ended up running the Nginx auto install script, which does return a webpage when I do a curl http://ec2-107-20-143-179.compute-1.amazonaws.com/. However, when I point my browser there, it hangs forever before saying the page cannot be found.

我已经分配一个弹性IP地址,我已经启用通过端口80 HTTP访问

I have assigned an Elastic IP address, and I've enabled HTTP access via port 80.

我做的系统管理员端没有太多的经验,我基本上难倒了这一点。任何意见将大大AP preciated。

I don't much experience with the sysadmin side and I'm basically stumped at this point. Any advice would be greatly appreciated.

推荐答案

您是否启用HTTP端口所有IP?这将通过去需做:

Did you enable the http port to all ips? That would be done by going to:

EC2 - >安全组 - >默认(或custome一个) - >内向

EC2 -> Security Group -> Default (or your custome one) -> Inbound

,然后创建了HTTP一个新的规则,并为源,应先分配:0.0.0.0/0

And then Create a new rule for HTTP and as a source, you should assign: 0.0.0.0/0

这应该这样做。

这篇关于通过公共IP无法访问网站的EC2实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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