Odd server_name directive behavior

I have an nginx 1.9.0 deploy and I noticed a working config where the
name
given to the server_name directive doesn’t match the names in the Host
headers or the certificate DNs. It looks like a mistake, but it works,
and
I don’t know why! Is it possible that if there is only one server stanza
that nginx doesn’t bother comparing the name and just processes the
request
via the only stanza defined?

On Monday 10 August 2015 18:13:53 CJ Ess wrote:

I have an nginx 1.9.0 deploy and I noticed a working config where the name
given to the server_name directive doesn’t match the names in the Host
headers or the certificate DNs. It looks like a mistake, but it works, and
I don’t know why! Is it possible that if there is only one server stanza
that nginx doesn’t bother comparing the name and just processes the request
via the only stanza defined?

http://nginx.org/en/docs/http/server_names.html
http://nginx.org/en/docs/http/request_processing.html

wbr, Valentin V. Bartenev

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs