nginx禁用访问.htaccess文件 发布于2016年3月23日 作者:ghost 服务器用的是nginx, 为了访问安全,需要禁用.htaccess文件. nginx配置中加入以下配置即可 location ~ /.htaccess { return 404; }