#2089 closed enhancement (invalid)
Directive "if" embeding is not allowed but not record.
Reported by: | 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.
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.