Welcome! Log In Create A New Profile

Advanced

Re: default_server directive not respected

Francis Daly
January 29, 2015 07:50AM
On Thu, Jan 29, 2015 at 12:50:41PM +0100, Lorenzo Raffio wrote:

Hi there,

> listen 80;
> listen 443 ssl default_server spdy;

> ... but it's not respected. If I point the A record of a domain I didn't
> add in a nginx server block, the first server block in alphabetical order
> is picked up (instead of the default_server).
> Why?

If your test request is https, it is worth further investigation.

If your test request is http, you should be aware that default_server
refers to the listen address:port, and you don't have one on port 80.

http://nginx.org/r/listen

The usual "what request do you make / what response do you get / what
response do you expect" would help here.

f
--
Francis Daly francis@daoine.org

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

default_server directive not respected

Lorenzo Raffio January 29, 2015 06:52AM

Re: default_server directive not respected

itpp2012 January 29, 2015 07:42AM

Re: default_server directive not respected

Francis Daly January 29, 2015 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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