首页 > 技术文章 > nginx动静分离

q1359720840 2020-12-14 22:39 原文

ngix放静态文件,动态文件直接请求tomcat,比如前缀加上/v1/

静态资源文件通过location:

location /www/{

root /data/;

index index.html

}

 

location /image/{

root /data/;

autoindex on;

}

推荐阅读