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

location ~* \.(txt|doc)${
    root /data/www/wwwroot/test;
    deny all;
}

posted on 2019-07-01 14:09  果然朝辉  阅读(3673)  评论(0编辑  收藏  举报

导航