Welcome! Log In Create A New Profile

Advanced

Re: server_name behaviour

September 13, 2010 03:00PM
On Mon, Sep 13, 2010 at 02:47:58PM -0400, Ensiferous wrote:

> Hi
>
> A couple of us in the IRC channel are keeping the wiki updated and we've
> come across some inconsistent behaviour with server_name.
>
> The wiki currently states here:
> http://wiki.nginx.org/NginxHttpCoreModule#server_name
> that server_name _; is treated specially for requests with no Host
> header, however, on the latest dev version this is not so.
>
> If a request on the IP or on a domain without a matching server_block
> comes in then Nginx will either choose the server block with
> default_server flag in listen or the first one defined.
>
> Question is, is this is a bug or should we update the wiki to no longer
> mention _?

Please read this:
http://nginx.org/en/docs/http/server_names.html#miscellaneous_names


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

server_name behaviour

Ensiferous September 13, 2010 02:47PM

Re: server_name behaviour

Igor Sysoev September 13, 2010 03:00PM

Re: server_name behaviour

Ensiferous September 13, 2010 03:13PM

Re: server_name behaviour

Gena Makhomed September 13, 2010 03:26PM

Re: server_name behaviour

Igor Sysoev September 13, 2010 03:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready