重启nginx:sudo /usr/local/nginx/sbin/nginx -s reload
出现错误提示:nginx: [emerg] unknown directive "if"?
修复方法:
if和()之间需要加空格
参考:http://agyuku.net/2012/05/nginx-emerg-unknown-directive-if-f/
posted on 2013-08-26 21:41 awildfish 阅读(181) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 awildfish Powered by .NET 8.0 on Kubernetes