chevron-up bell reply instagram twitter2 feed3 finder search-25px-p0
       欢迎访问免费空间

启动NGINX时,出现 Testing nginx configuration: [emerg]: unknown directive "if($request_uri" in /etc/nginx/nginx.conf:73

2017-06-26

启动NGINX时,出现

Testing nginx configuration: [emerg]: unknown directive “if($request_uri” in /etc/nginx/nginx.conf:73

 

我是这样配置的:

解决方法:

if 和 ( 缺一个空格 ,如果没有空格他把if($request_uri当成一个指令了,没有这个指令

Fresher

发表评论

You must be logged in to post a comment.