I just upgraded a bunch of packages, including apache2 and php5, on a Ubuntu 10.04 VPS. Apache is serving php as the backend to an nginx reverse proxy.
Now all of a sudden all connections attempted by nginx to apache are refused. I haven't changed any of the nginx, apache2, or firewall configurations.
The nginx logs indicate requests are refused and a 301 error is returned. Apache2 logs indicate each request is generating a 301 error, which I presume is being fed back to nginx.
My Firefox browser is outputting the following:
"The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
Frustration is rising to stratospheric levels. Would greatly appreciate any thoughts on where the problem might be.
EDIT I tried disabling nginx and accessing apache directly, and that works perfectly. I also noticed that when I disable mysql, nginx is able to communicate with apache in order to render the site's error page (due to lack of db connection). So it would appear that perhaps this is a problem with the mysql connectivity, or lack thereof. I'm at a total loss to explain this - considering a total reinstall of everything.