location ~ .*\.(css|js|gif|png|jpg|jpeg|bmp|swf)$ {
  root $root_path;
  access_log off;
}

转载于:https://www.cnblogs.com/dongruiha/p/7008041.html

更多推荐