静态资源由nginx 处理。通过 location 正则匹配到静态资源的url 引导到静态资源服务。
动态资源由 动态应用程序 FastCGI 处理。
http {upstream tuling1 {server http://img.aaa.com;}server {### 静态资源引导到专有的静态资源服务器location ~*\.(jpg|gif)$ {proxy_pass http://tuling1;}### 引导到本地资源目录location ~ .*\.(html|htm|gif|jpg|jpeg|bmp|png|ico|js|css)$ {root /Users/dalaoyang/Downloads/static;}}}
静态服务器
将远端或转的资源 缓存到本地的目录,可以设置一个缓存时间,在缓存时间内,返回的时本地缓存的文件

