简体   繁体   中英

How to access the sails app with AWS EC2 Public IP

I have a sails webapp deployed in Aws EC2 Ubuntu instance. When I lift the sails in production mode(sails lift --prod --verbose) I can access my app by typing ip with port number (xx.xx.xxx.xx:1337). When i am trying to access it with Ec2 Public IP(xx.xx.xxx.xx). It is showing "This Webpage is not available". Is it possible to access the app from Public IP??

Solved the Issue by editing my iptables to:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

Open 443 port ie HTTPS

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM