location /project/videos/ {
alias /home/user/project/videos/;
valid_referers blocked *.mydomain.com;
if ($invalid_referer) {
return 403;
}
try_files $uri @php;
}