nginx动静分离

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

静态资源文件通过location:

location /www/{

root /data/;

index index.html

}

 

location /image/{

root /data/;

autoindex on;

}

posted @ 2020-12-14 22:39  三号小玩家  阅读(72)  评论(0编辑  收藏  举报
Title
三号小玩家的 Mail: 17612457115@163.com, 联系QQ: 1359720840 微信: QQ1359720840