如何配置nginx,从而可以访问网站根目录的文件 比如想要访问domain/1.txt文件, nginx配置方法: location ~* \.(txt)${ root /www; allow all; }