Dust8 的博客

读书百遍其义自见

0%

nginx错误收集

错误 1. unknown directive “if(\$query_string)”

在 vps 上部署 Tornado 是按照官网的介绍部署的,可是提示出错了。

出错信息为:_[emerg]: unknown directive “if(\$query_string)”_。

google 了半天,在狂奔的鹿这里找到了原因。

原来是在 _if_ 和 _(_ 之间一定要有空格。