标签:referer group ret gif code mod fast expires data
# 获取图片
location /group[1-9]/M0[0-9] {
root /home/vdc1/fastdfs_storage/data;
ngx_fastdfs_module;
}
# 防盗链
location ~* \.(gif|jpg|png|jpeg)$ {
expires 30d;
valid_referers *.syk0371.cn www.syk0371.cn pic.syk0371.cn;
if ($invalid_referer) {
rewrite ^/ https://www.syk0371.cn;
#return 404;
}
}
标签:referer group ret gif code mod fast expires data
原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/12890603.html