I just figured out the problem.
I did not include the "www" version of my domains in the .conf in some
cases. I have fixed it.
Still, I don't understand why the behavior should be defaulting to
whatever site I happened to configure first.
Jim Ohlstein wrote:
This happened with me a short time ago on a new server.
If your site config files include:
listen domain.tld;
try changing them to:
listen 80;
or
listen *:80;
or
listen xx.xx.xx.xx:80;
------Original Message------
From: Chris Cortese
Sender: owne...@sysoev.ru
To: nginx
ReplyTo: ngi...@sysoev.ru
Subject: wrong site displayed--seemingly randomly
Sent: Mar 13, 2009 3:25 PM
I moved my sites over to a new server and a new install of nginx-0.7.40
a couple days ago. I noticed once 2 days ago that I went to one domain
and one of my other sites showed up. I thought this must be something
strange with the DNS propagation.
Today my business partner went to our site and saw this same other site
instead. The site that sometimes is mistakenly showing up is the first
site I migrated to the new server setup.
None of these sites is set to be any sort of default, and all are
included an:
include ...../sites-available/*.conf;
Anybody have any idea what else could be causing this? It's a pretty
serious problem.
Sent from my Verizon Wireless BlackBerry