Nginx根目录是/opt/www
假如 /opt/www/a/x /opt/www/a/d/x /opt/www/b/x 如果配置可以禁止访问所有的x目录?
找到了 location ~ ^(.*)\/\x\/{ deny all;}