add_header Content-disposition "attachment; filename=$1";
location ~* /video/(.*)$ {
add_header Content-disposition "attachment; filename=$1";
root /var/www/site.com/video;
}
location /video/ {
if ($request_filename ~ "^.*/(.*)$"){
set $fname $1;
add_header Content-Disposition 'attachment; filename="$fname"';
}
}