John Paul
John Paul

Reputation: 29

Getting a 502 bad gateway error on nginx hosting

I'm getting a error in my hosting while trying to authenticate twitter and facebook. I'm getting this error in the authentication success page.

502 bad gateway

nginx

How to fix it?

Upvotes: 3

Views: 1879

Answers (1)

Aaron Perley
Aaron Perley

Reputation: 629

You could check the error log to see why nginx is throwing a 502 error by adding

error_log logs/error.log to nginx.conf.

Then restart nginx and watch the log file with tail -f logs/error.log as you try to authenticate.

Upvotes: 2

Related Questions