I am new to using WordPress on Nginx and am seeing funny errors pop up here and there.
For a while when I was searching for a new plugin through /wp-admin/plugin-install.php?tab=search&s=captcha&plugin-search-input=Search+Plugins, I get:
502 Bad Gateway
After a while, everything just started working again fine.
However, now when I try to access anything inside /wp-admin I am getting a 502 error again. The front end of the site works fine.
What are the steps to get things moving cleanly and to prevent this from constantly happening.