· server { listen 80; server_name xxx.com; root /alidata/www/cloudDream.com/admin/web; location / { try_files $uri $uri /index.html; } #将静态文件使用缓存 location ~ .*\.(html|gif|jpg|jpeg|png|bmp|swf|ico|flv|js|css)$ { expires 100d; }}