问题描述
配置文件proxy_cache cache_one 其中这个cache_one的缓存在哪如果本机设置的画,要如何设置,如何新建这个缓存,如何查找缓存位置linux下提示nginx: [emerg] 'proxy_cache' zone 'cache_one' is unknown in /etc/nginx/nginx.conf:105
问题解答
回答1:在http下面proxy_cache_path 路径 keys_zone=名字:最大占用空间例如proxy_cache_path /data/nginx/cache keys_zone=cache_one:100m