nginx-let-module icon indicating copy to clipboard operation
nginx-let-module copied to clipboard

nginx: [emerg] "let" directive is not allowed here

Open root-wyj opened this issue 7 years ago • 0 comments

let不能再if中执行。(let directive is not allowed in if body)

        location /let {

            if ($uri ~ ^/let/(\d+)$) {
                echo $uri;
                set $id $1;
                echo $id;
                let $dived ( 3 / 2 );
                echo $dived
            }
        }

检查配置文件的时候 会不通过,报题目那样的错误

root-wyj avatar Feb 26 '18 10:02 root-wyj