这是我在配置文件中的内容:
location /media {
alias /var/www/my-site.com/videotube/media;
valid_referers none blocked my-site.com *.my-site.com;
if ($invalid_referer) {
return 403;
}
}
当我重新启动nginx时,它失败并显示消息unknown directive "valid_referers"
。
答案 0 :(得分:0)
检查您是否安装了mod_valid_referers