1、它只能使用于http{ }部分,把proxy_cache_path放置于http部分即可解决此问题。注意图示的上下文
相关文章
- nginx: [emerg] “location“ directive is not allowed here in /usr/local/nginx/conf/:72
- nginx: [emerg] "server" directive is not allowed here in /usr/local/nginx/conf/:48
- nginx: [emerg] “location“ directive is not allowed here in /usr/local/nginx/conf/:41
- nginx: [emerg] "proxy_cache_path" directive is not allowed here..
- nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx//conf/nginx.conf:117
- 阿里云centOS7.4 nginx: [emerg] "server" directive is not allowed here in /etc/nginx/vhost/xxxxxx.conf:2
- nginx: [emerg] directive "location" has no opening "{" in /usr/local/nginx//conf/nginx.conf:75