Error 502, Bad Gateway. DNS not pointing to correct IP.
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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×