记录一下,优先检查文件是否存在,存在则输出文件,不存在再重写给指定的index.php文件:

location ~.*\.(gif|jpg|jpeg|png|css|js|ttf|woff|svg|eot)$ {
try_files /static/$uri $uri[......]

阅读全文