nginx禁用访问.htaccess文件

服务器用的是nginx,  为了访问安全,需要禁用.htaccess文件.

nginx配置中加入以下配置即可


location ~ /.htaccess {

return 404;

}