I would like to alias all js,css to cache static, but not working. Do you know how to do this ?
location ~* ^/(.*)/[^/].+.(css|js)$ {
error_log /var/log/nginx/CssJs-log;
alias /home/static/$1.$2;
expires 30d;
add_header X_Cached 1;
error_page 403 404 502 504 = @SHtomcat;
}