Changes between Initial Version and Version 2 of Ticket #2244


Ignore:
Timestamp:
09/13/21 13:54:13 (3 years ago)
Author:
Thomas Landauer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2244 – Description

    initial v2  
    1 With this being my `.conf`
     1With this being my `sites-enabled/foo.conf`
    22{{{
    33server {
     
    88}
    99}}}
    10 ... and this my `inc`
     10... and this my `sites-enabled/inc`
    1111{{{
    1212listen 443 ssl http2;
     
    1515> nginx: [emerg] "listen" directive is not allowed here in /etc/nginx/sites-enabled/inc:1
    1616
    17 If I move the ssl_certificate lines to `inc` (and move the `listen` back to `.conf`), it works.
     17If I move the ssl_certificate lines to `inc` (and move the `listen` back to `foo.conf`), it works.
    1818
    1919So either this is a bug, or http://nginx.org/en/docs/ngx_core_module.html#include is wrongly claiming that `include` works in **any** context.