昨天在申请百度闭站保护时,一直不通过。提示全站不是404,无法闭站。
可用下面代码可实现。把下面代码放到伪静态配置里面即可
location / { #root html; #index index.html index.htm; return 404; }