我有一个AWS EC2实例,可以通过SSH访问,但不会通过其公共IP加载。 该页面不断加载,然后超时。
我已经检查了安全组,并且在luanch向导1(唯一的安全组)中允许以下内容:
公共IP
有任何想法吗?
编辑*这是一个运行Linux,Apache,MySQL和PHP的EC2实例。
服务器正在接受端口80上的连接正常:
telnet 52.208.91.148 80 Trying 52.208.91.148... Connected to ec2-52-208-91-148.eu-west-1.compute.amazonaws.com. Escape character is '^]'. ^] telnet>
您的networking服务器configuration可能存在问题。
编辑:
您好像在您的服务器configuration中redirect到redirect到不接受连接的服务器:
--2016-10-12 14:42:46-- http://52.208.91.148/ Connecting to 52.208.91.148:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://ec2-52-209-134-209.eu-west-1.compute.amazonaws.com/ [following] --2016-10-12 14:42:47-- http://ec2-52-209-134-209.eu-west-1.compute.amazonaws.com/ Resolving ec2-52-209-134-209.eu-west-1.compute.amazonaws.com... 52.209.134.209 Connecting to ec2-52-209-134-209.eu-west-1.compute.amazonaws.com|52.209.134.209|:80
您可以使用Curl来testingredirect,如下所示。
curl -I vv 52.208.91.148 HTTP/1.1 302 Moved Temporarily Server: nginx Date: Thu, 13 Oct 2016 10:56:12 GMT Content-Type: text/html Content-Length: 154 Connection: keep-alive
如果有一些redirectconfiguration,已经在另一个线程已经回答..
在Nginx中,如何在维护子域的同时将所有http请求重写为https?
检查这个