h5bp / server-configs-nginx

Nginx HTTP server boilerplate configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate deferred listen options

Dreamsorcerer opened this issue · comments

In the example.com server blocks are these examples:

  # listen [::]:443 ssl http2 deferred;  # for Linux
  # listen 443 ssl http2 deferred; # for Linux

The problem with adding deferred in these server blocks, is that you get a duplicate listen options error when you have more than one server block with deferred listed.

Maybe a better idea is to put these in the no-default config instead, where they are only going to get listed in one place? (i.e. any one-time only options can get specified along with the one-time only default_server option)