码迷,mamicode.com
首页 > 系统相关 > 详细

nginx: [emerg] "proxy_cache_path" directive is not allowed here in /usr/local/nginx/conf/nginx.conf:43

时间:2017-03-27 23:10:38      阅读:936      评论:0      收藏:0      [点我收藏+]

标签:proxy   dir   ima   direct   path   cache   .com   not   上下   

1、它只能使用于http{  }部分,把proxy_cache_path放置于http部分即可解决此问题。注意图示的上下文

技术分享

 

nginx: [emerg] "proxy_cache_path" directive is not allowed here in /usr/local/nginx/conf/nginx.conf:43

标签:proxy   dir   ima   direct   path   cache   .com   not   上下   

原文地址:http://www.cnblogs.com/shengulong/p/6629269.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!