#rewrite ^/ http://www.linuxeye.com/403.html;

问答中心分类: OneinStack#rewrite ^/ http://www.linuxeye.com/403.html;
探路者 提问 1年 前

您好,在/usr/local/nginx/conf/vhost/www.example.com.conf文件里面怎么会出现:”http://www.linuxeye.com/403.html”呢?
location ~ .*\.(wma|wmv|asf|mp3|mmf|zip|rar|jpg|gif|png|swf|flv)$ {
valid_referers none blocked *.example.com http://www.example.com;
if ($invalid_referer) {
#rewrite ^/ http://www.linuxeye.com/403.html;
return 403;
}
}