图片不存在时,nginx反向代理到其他域名下
location ~ .+\.(jpg|gif|jpeg|png|webp)$ {
# proxy_set_header Host $http_host;
if (!-e $request_filename) {
proxy_pass https://***.com;
}
index index.php index.html index.htm;
}
location ~ .+\.(jpg|gif|jpeg|png|webp)$ {
# proxy_set_header Host $http_host;
if (!-e $request_filename) {
proxy_pass https://***.com;
}
index index.php index.html index.htm;
}