Nginx如何配置禁止访问某个目录

location ~* .(txt|doc)${
    root /data/www/wwwroot/test;
    deny all;
}
原文地址:https://www.cnblogs.com/phonecom/p/11113714.html