Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2089 closed enhancement (invalid)

Directive "if" embeding is not allowed but not record.

Reported by: zhoushulin1992@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.18.x
Keywords: Cc: zhoushulin1992@…
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 -V: 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

Description

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 Maxim Dounin, 4 years ago

Resolution: invalid
Status: newclosed

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.

Last edited 4 years ago by Maxim Dounin (previous) (diff)
Note: See TracTickets for help on using tickets.