nginx的一些配置
map $http_user_agent $***_build_version {
default "***.exe";
"~Windows NT 10.0" "****-win10.exe";
}
server {
listen 80;
server_name www.***.com;
root /data/download;
try_files $uri /$***_build_version =404;
}
根据http_user_agent判断 来确定下载的软件