server blocks configured, but getting "hello world" of nginx
strattonbrazil at gmail.com
Mon Feb 3 20:59:28 UTC 2014
What does the DNS server have to do with it? I thought it just translated
domain names to IP addresses. I thought the browser queries the DNS, gets
the IP from the domain name (which is the same for both domains--with or
without www), and returns it to the browser. The browser then fires the
request to that IP address with the domain inside the HTTP header, which
nginx uses to determine the correct server block.
On Mon, Feb 3, 2014 at 12:42 PM, Valentin V. Bartenev <vbart at nginx.com>wrote:
> On Monday 03 February 2014 12:32:53 Josh Stratton wrote:
> > Right, I actually have those lines commented out. That's the part I
> > understand. For example, if I put everything in the same file (example
> > below), neither one of them have a default_server or a wildcard. The
> > other option I see from the link you sent me is www.morebears.com is
> > getting "defaulted" by nginx to the hostname. However, I don't know what
> > about my server would default to strattonbrazil.com. Based on the below
> > settings, I don't see how that should be happening and in my system
> > environment I don't see anything like `hostname` that would also direct
> > strattonbrazil.com.
> It's up to your DNS server configuration. Nginx knows nothing about it,
> it just receives requests that actually can contain arbitrary host name.
> wbr, Valentin V. Bartenev
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx