Welcome! Log In Create A New Profile

Advanced

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

Valentin V. Bartenev
February 04, 2014 09:33AM
On Monday 03 February 2014 11:21:06 Josh Stratton wrote:
> How long is that cache kept?

It depends on browser if there were no cache-related headers in response.

> If it redirected to the other one, will be redirect on my phone indefinitely?
> I tried clearly my phone's settings and it still pulls up the other site's
> page--the old page, too, as I've changed the words. Is nginx saying this
> page is cacheable and thus not returning the new version because the browser
> uses the old one?

By default nginx doesn't return any cache-related headers. If the browser has
cached some page, it can show the page to user without requesting server.

>
> > This article should shed the light:
> > http://nginx.org/en/docs/http/server_names.html
>
> Thanks for the link. That seems pretty clear, but how is nginx deriving
> the hostname? If I run `hostname` I get "home" back. I still don't
> understand why it fell back to the other one.

If there is no server defined for a requested host, it falls back to that one
with the "default_server" parameter in the listen directive for a specific
address:port pair, or to the first one in the configuration if there is no such
parameter.

wbr, Valentin V. Bartenev

_______________________________________________
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: 180
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