如何最大限度地减少此类请求?
location = /GetFile.ashx {
return 301 /overview-videos/;
}
location = /products/GetFile.ashx {
return 301 /overview-videos/;
}
location = /abouts/GetFile.ashx {
return 301 /overview-videos/;
}
答案 0 :(得分:1)
Nginx的简单解决方案:
location ~ ^/(.*)GetFile.ashx$ {
return 301 /overview-videos/;
}