nginx 配置全站404(百度闭站保护)

在百度站长里申请闭站保护时,需要全站404。可能过nginx配置实现

location / {
   #root html;
   #index index.html index.htm;
   return 404;
}

原文地址:https://www.cnblogs.com/yinkh/p/5607103.html