Hello, I’m new to a lot of Cloud Computing. I booted up a Lightsail instance and wanted to redirect a domain (I own) to it.
Per the docs I have done the following:
Created a static IP and attached it to the instance.
Created a DNS A record that points the domain to the static IP.
I added the nameservers from my Lightsail instance to my Route53 registered domain.
I’m currently unable to access my site via either the static IP or domain name. I verified the Firewall settings allow HTTP / SSH inbound, and I can log in to use the terminal just fine. Is there something I’ve missed here? I’ve gone into the instance and restarted the web server to troubleshoot, but that didn’t have much of an effect.
EDIT: I should note this may be a Wordpress issue. I can SSH to the site but not view it by HTTP. The change seemed to happen when I switched from the standard dynamic IP to a static one. Even if Wordpress settings have been affected by the IP change, shouldn’t I still see something?
EDIT2: It’s fixed. The issue seems specific to Bitnami Wordpress, not AWS. This command ‘fixed’ it.
Sounds like a firewall issue. Temporarily set your security group wide open, any protocol, from all ports and from all ip’s. Also verify outbound is wide open (should be by default). If you still have connection issues then its probably iptables blocking you.
what are you using for your webserver? check the listen value (or equivalent for your server) that it is either listening to 0.0.0.0 or the new ip instead of the old dynamic one
Connection to 127.0.0.1 80 port [tcp/http] succeeded!
netstat -plan | grep 80
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:36434 127.0.0.1:80 TIME_WAIT -
tcp6 0 0 :::80 :::* LISTEN -
unix 3 STREAM CONNECTED 14180 -
unix 3 STREAM CONNECTED 14805 - /var/run/dbus/system_bus_socket
unix 3 STREAM CONNECTED 14804 -
This indicates that there’s nothing wrong from a networking perspective - your client machine is successfully able to open a TCP connection to the webserver. But your webserver may not be responding to the HTTP requests sent over that connection.
Try ‘curl -v http://yoursite’ to see how your webserver is responding to requests. You should see HTTP response headers and some kind of body.
EDIT: rereading, I see that the test above only shows that connections succeed locally on the lightsail instance. However, testing remotely against the 65.61.198.201 address also connects successfuly., So the comment stands.
I’m beginning to suspect the issue may be more with Wordpress than anything else. I’m not the most technical guy in the world but this shouldn’t be this difficult…right?