proxy_store_access
proxy_store_access users:permissions ...;location /images/
{
root /data/www;
error_page 404 = /fetch$uri; #定义了404错误的请求页面
}
location /fetch/ #匹配404错误时的请求
{
proxy_pass http://backend;
proxy_store on; #开启Proxy Store方法
proxy_store_access user:rw group:rw all:r;
root /data/www; #缓存数据的路径
}Last updated