NGINX某些配置

1.运行访问某些文件

location   /files {
   if ($uri !~* \.(png|jpg)$) {
     return 403;
   }
   root  /usr/local/nginx/html;
    autoindex on;
}