Error 502, Bad Gateway. DNS not pointing to correct IP.

September 11, 2017 248 views
Miscellaneous Ubuntu

Noob here, so please bare with me. A few months ago, I installed wordpress on Ubuntu. Everything was working fine. I got an email saying I needed to top up my DO account. Did that and that same day, I discovered the 502 error when trying to access my site. I didn't touch or change any of the configurations so am confused as to why this is happening.

Checked the error log:
[Mon Sep 11 06:25:02.712692 2017] [mpm_prefork:notice] [pid 1561] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Mon Sep 11 06:25:02.712766 2017] [core:notice] [pid 1561] AH00094: Command line: '/usr/sbin/apache2'

Checked the DNS and found out it's not pointing to the correct IP where my droplet is. Double checked on the DO side and my domain (A record) is directed to the IP address of my droplet.

When I enter the IP address of my droplet in my browser, the same Error 502 comes up. I've waited a day, cleared out my cache, used a different browser etc, plus did a few reloads and still nothing.

What am I missing here? Desperate for a solution.

1 comment
  • Maybe the nameservers changed? Are they redirected to the DO nameservers?
    I need some more information and logs/configs if this is not the problem

Be the first one to answer this question.