Welcome! Log In Create A New Profile

Advanced

Re: Minor "bug" in nginx

April 30, 2009 12:50AM
On Wed, Apr 29, 2009 at 05:23:13PM -0700, Michael Shadle wrote:

> isn't this the same then?
>
> server {
> listen 80;
> server_name _;
> }
>
> server {
> listen 80 default;
> }
>
> if you only had one of those in your config, the fallbacks would occur
> to those blocks, if they did not match any others though, right?
>
> obviously mixing them would prefer the listen 80 default; i assume?

No, these are different things. The default server for *:80 is only

server {
listen 80 default;
}

or the first server listing on *:80 if you have no "default" keyword.

The "server_name _" is just invalid and so nonexistent domain name
that will never interfere with any real name.

> 2009/4/29 Maxim Dounin <mdounin@mdounin.ru>:
> > Hello!
> >
> > On Wed, Apr 29, 2009 at 03:57:28PM -0700, Michael Shadle wrote:
> >
> >> On Wed, Apr 29, 2009 at 3:01 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> >>
> >> > It MUST per RFC2616.
Subject Author Posted

Minor "bug" in nginx

mike April 29, 2009 04:17PM

Re: Minor "bug" in nginx

Maxim Dounin April 29, 2009 06:01PM

Re: Minor "bug" in nginx

mike April 29, 2009 06:57PM

Re: Minor "bug" in nginx

mike April 29, 2009 08:23PM

Re: Minor "bug" in nginx

Igor Sysoev April 30, 2009 12:50AM

Re: Minor "bug" in nginx

Maxim Dounin April 29, 2009 08:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
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