基本上问题是如何使这个url
http://domain.com/folder/cache.php?a=3a1c2aa4d440d3d8ce4207b07488ae4d?g=67h
看起来像这样
http://domain.com/folder/3a1c2aa4d440d3d8ce4207b07488ae4d?g=67h
这工作
rewrite ^/folder/(.*)$ /folder/cache.php?a=$1?$args? last;
rewrite ^/folder/(.*)$ /folder/cache.php?a=$1$is_args$args? last;