简体   繁体   English

如何从AWS的公共IP访问我的应用程序?

[英]How can I access my application from the public IP of AWS?

Whenever I tried to access to my deployed application on an EC2 instance of AWS using the public IP, I get the following messages on Chrome: "This site can't be reached ec2-54-194-153-202.eu-west-1.compute.amazonaws.com took too long to respond." 每当我尝试使用公共IP访问AWS的EC2实例上已部署的应用程序时,我都会在Chrome上收到以下消息:“无法访问此站点ec2-54-194-153-202.eu-west- 1.compute.amazonaws.com响应时间过长。”

then, What changes shall I apply in order to grant access to the application properly ?, Thank you, 那么,为了正确授予对应用程序的访问权限,我应该进行哪些更改?,谢谢,

The first thing to check in this case is The Security-Group inbound rules attached to your Ec2. 在这种情况下,首先要检查的是附加到您的Ec2的“ 安全组”入站规则。

If your application is running behind a webserver like Nginx or Apache, check that your security_group is open in inbound for the public range (0.0.0.0/0) on the http port (80). 如果您的应用程序在Nginx或Apache之类的Web服务器后面运行,请检查您的security_group是否在入站中打开,以获取http端口(80)上的公共范围(0.0.0.0/0)。

You can get this info on the Ec2 panel, click on your instance and check the attached security_group, click on it and check the inbound rules. 您可以在Ec2面板上获取此信息,单击您的实例并检查附加的security_group,单击它并检查入站规则。

Here is a guide for you. 这是给您的指南。

Notice : If nothing is running on your Ec2 it will never respond, be sure your app is served by a Nginx/Apache/Tomcat daemon. 注意:如果Ec2上没有任何内容,它将永远不会响应,请确保您的应用程序由Nginx / Apache / Tomcat守护程序提供服务。

Hope it helps ! 希望能帮助到你 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法通过AWS上的公共IP访问Prometheus - Can't access Prometheus from public IP on aws 如何为我的AWS ALB创建公共IP地址? - How do I create a public IP address for my AWS ALB? 如何从我的 AWS 实例的公共 IP 地址运行 ThingsBoard - How to run ThingsBoard from the public IP address of my AWS instance 我可以将多少个公共IP地址附加到AWS实例? - How many Public IP address can I attach to AWS Instance? 如何使用运行IIS Web服务器的公共IP访问我的EC2实例? - How can I access my EC2 instance with the public IP which is running an IIS web server? AWS:通过负载均衡器或通过服务中任务中指定的公共 IP 访问应用程序 - AWS: Access to the application through the Load Balancer or by the Public IP specified in the Task from the service 在哪里可以找到我的AWS Application Load Balancer IP? - Where can I find my AWS Application Load Balancer IP? 如何通过某些IP允许访问我的AWS Beanstalk站点上的特定URL - How can i allow access to a specific url on my AWS Beanstalk site by certain ip 我无法使用公共 IP 访问网站 - I can not access to the website with a public IP 如何拒绝对 AWS API 网关的公共访问? - How can I deny public access to an AWS API gateway?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM