I am not able to access my web server I recently set up on Ubuntu AWS EC2 instance:
client:~ user$ curl yyy.yyy.yyy.yyyy
curl: (7) Failed to connect to yyy.yyy.yyy.yyyy port 80: Operation timed out
Apache is up and running at the AWS instance:
ubuntu@server:~$ sudo service apache2 status
* apache2 is running
and the port 80 is opened
ubuntu@server:~$ sudo netstat -plunt | grep apache2
tcp6 0 0 :::80 :::* LISTEN 2968/apache2
I am not that experienced in setting up web servers so far, but as I know Apache should be accessible right after it was installed. What might be wrong in my case?
Best Answer
The web server seems to be listening to the actual port and running, accordingly to your
netstat
.You have got to open the firewall rule in the AWS console.
Have a look at this: Authorizing Inbound Traffic for Your Linux Instances
Change SSH from the quoted test to HTTP.