Opened 3 years ago
Closed 3 years ago
Last modified 3 years ago
#2089 closed enhancement (invalid)
Directive "if" embeding is not allowed but not record.
|Reported by:||Owned by:|
|uname -a:||Linux xlarge 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux|
nginx version: nginx/1.18.0
built by gcc 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configure arguments: --prefix=/usr/local/nginx --with-pcre=/root/Downloads/pcre-8.43
Directive "if" should not allow another "if" inside, but this is not record in the doc https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if. It is better to add this information in the doc.
Change History (1)
comment:1 by , 3 years ago
|Status:||new → closed|
Last edited 3 years ago by (previous) (diff)
Note: See TracTickets for help on using tickets.
It is clearly documented that the allowed contexts for the "if" directive are "server" and "location". If a directive is allowed in the "if" context, it is documented as such.