Cloudflare and Nginx return Error 502

What is the name of the domain?

What is the error number?

502

What is the error message?

Bad gateway

What is the issue you’re encountering

I’m trying to setup a reverse proxy using domain that i bought from Cloudflare. I followed a few tutorial on this toping from Youtube and finish every steps like setting up DNS records, get token, create SSL in Nginx Proxy Manager, creat proxy hosts in NPM links to the DNS records, open ports in the router for NPM. But the result came back 502.

What steps have you taken to resolve the issue?

I tried setting SSL/TLS encryption mode to both Full and Full (strict)

  1. Kindly turn off proxy for a while and check again.
  2. Also, I suggest you to look into log

tail -f /var/log/nginx/*error.log

or may be /home/app-name/ path or some other depends on what you have installed and how.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.