Welcome! Log In Create A New Profile

Advanced

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton
February 04, 2014 09:33AM
Right, and that's fine. It just seems a bizarre behavior. I would have
expected an nginx error or something. Thanks for all your help getting it
figured out. nginx's configuration seems very intuitive in general.


On Mon, Feb 3, 2014 at 2:13 PM, Valentin V. Bartenev <vbart@nginx.com>wrote:

> On Monday 03 February 2014 12:59:28 Josh Stratton wrote:
> > 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.
>
> Right. But your configuration only had two server blocks: one with
> server_name "morebearsmore.com" and one with server_name "
> strattonbrazil.com",
> so there is no one for "www.morebearsmore.com", and since you didn't have
> "default_server" parameter in any of them, then nginx just picked up the
> first included in nginx.conf file.
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Josh Stratton February 04, 2014 09:33AM

Re: server blocks configured, but getting "hello world" of nginx

Valentin V. Bartenev February 04, 2014 09:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready