A communication error occurred: Connection refused
Hi everybody,
I'm new with openstack and I created my first instance some days ago.
I installed a LAMP following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04 (https://www.digitalocean.com/communit...)
But when I do a spot check to see the default apache2 page using the public IP (and from another machine) I am getting next error in my browser:
Network Error (tcp_error)
A communication error occurred: "Connection refused"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
For assistance, contact your network support team.
I can reach and login to my instance using SSH and I can ping it and receive a feedback.
I doubt this has naything to do with OpenStack. Your instance doesn’t block HTTP requests, but there is nothing that accepts them. As root, run
ss -ltnp
to check if a process listens on ports 80 or 443.A few things I would do:
Found the solution. Port 80 was not allowed in default Security Group Rules I used. Allowing port 80 solved my issue.