I am posting this figuring it is a long shot in the dark that anyone will answer. I am running Nginx 1.4.4. with APC I have been spending most of the time working on a test site that was a clone of a production site. I needed to update the sites to 7.1.4 and found the point version to be a beta; I posted about that on the forums. It was decided that since the beta 7.1.2 was only a week from the 7.1.2 final that no changes had been made and it was safe to remove the beta designation and proceed with the upgrade on the test site. Everything appeared to be working. I then proceeded to upgrade the other sites on the server. Yesterday I noted that the production site kept redirecting to the test site. I have checked all configuration of Nginx and have cleared the APC several times. I even made edits to the Nginx configs to see where the problem lies. I ran a check today on the HOSTS in the header wondering if that was a problem since Nginx reads the HOSTS to determine which server block to load. I disabled the test site and I see that I am getting an endless redirect between loading a production site and loading the test site. Since the test site is disabled, Nginx then loads the first server block which in turns tries to load the test site which fails and so Nginx loads the first server block again and this repeats until the browser ends the redirect. I have examined this using Firebug's console so can see what is happening; which redirects are happening.
I have checked all the config files to make sure the paths are correct, have checked all the header.inc.php files. DNS appears to be correct, I even removed the wildcard DNS entry. All caches have been cleared included the browser cache. If the test site is left in place, it will load and no redirect is encountered. Trying to go to the production site results in a redirect to the test site which then loads and the redirect ends there.
As I think about this; everything wants to redirect to the Test Site; which was the first site to be upgraded. I am wondering if I wrote something to the upgrades without realising it that is causing all sites to be redirected to the Test Site?
Anyone have any answers?