1.出现的问题
在修改nginx 配置文件的时候 修改了http处 重新启动就报错。
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /usr/local/nginx/conf/nginx.conf:46
2.问题分析
估计是文件写错了 一搜就找到了解决方案。
3.问题解决
缺少了分号。
加上就可以了。
参考资料
qq59cc601f169b1 ©著作权
在修改nginx 配置文件的时候 修改了http处 重新启动就报错。
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /usr/local/nginx/conf/nginx.conf:46
估计是文件写错了 一搜就找到了解决方案。
缺少了分号。
加上就可以了。
参考资料
一句话if 和 ( 缺一个空格 ,如果没有空格他把if($request_uri当成一个指令了,没有这个指令自己玩去吧
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M