proxy_store_access
proxy_store_access指令用于设置用户或用户组对Proxy Store缓存的数据的访问权限,其语法结构为:
proxy_store_access users:permissions ...;
users,可以设置为user、group或者all。
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
Was this helpful?