ruby on rails 4 - ec2 instance unreachable from browser with rails4 -


first, read found problem still stuck, launch ec2 instance, security group port 80 open, ssh (22) , icmp (-1)

enter image description here

i can ping ip, works well, can ssh, no problem, when wget http://localhost on instance it's working well

it's rails application launch sudo rails s -p80 (to on port 80) have err_connection_refused

when nstat on instance got :

enter image description here

so guess port 80 not open have no idea how fix this.

anyhelp ? thx

are using rails 4.2.x? defaults listen on localhost interface. can use sudo rails s -b 0.0.0.0 -p80 tell listen on interfaces , should accessible externally.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -