vim /usr/local/nginx/conf/vhosts/test.conf
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log off;
}
location ~ .*\.(js|css|static|cache)$
{
expires 12h;
access_log off;
}
nginx -t
nginx -s reload