动静分离 Nginx动静分离是让动态网站里的动态网页根据一定规则把不变的资源和经常变的资源区分开来,动静资源做好了拆分以后,我们就可以根据静态资源的特点将其做缓存操作,这就是网站静态化处理的核心思路. upstream apptest{ server localhost:; server localhost:; } server { listen ; server_name localhost; location / { root /usr/local/nginx/html; index ind