익명 06:52

Why can't I get HTTP connection to Amazon Web Services EC2 Windows Server 2012 I...

Why can't I get HTTP connection to Amazon Web Services EC2 Windows Server 2012 Instance?

I have an Amazon Web Services EC2 instance with a Windows Server 2012 AMI on it. I have installed XAMPP on it, and have started the apache server from the XAMPP Control Panel. It starts successfully.

Also in the AWS Dashboard, I have added rules to the relevant Security Group for the Instance, as detailed in linked image (I don't have enough reputation yet to post an image):

AWS EC2 Instance Security Group Settings

I have replaced the actual source ip setting for the inbound traffic with xxx.xxx.xxx.xxx/32 in this image, but it is set to the ip from which I am trying to establish the http connection, so I am not sure why I am unable to establish an http connection? I have also tried allowing inbound HTTP traffic via port 80 from all sources, by specifying ip 0.0.0.0/0, same problem.

I am trying to establish the http connection via my browser, simply by using the AWS instance public dns/ip, e.g.

http://myAWSinstancedns.compute.amazonaws.com

Or:

http://myAWSinstancedns.compute.amazonaws.com/xampp/splash.php

When trying the same thing from within the AWS instance, using localhost, it works, but not from outside.



Top Answer/Comment:
  1. Create a second instance on the same subnet and on the same security group and see if you can access the http server. If so that points to security group or ACL issues. If not, then
  2. Check if the http server accepts connections on 0.0.0.0/0 or only 127.0.0.1 (localhost). One allows it to accept only local connections while other allows it to accept incoming connections.
상단 광고의 [X] 버튼을 누르면 내용이 보입니다