nginx动静分离
ngix放静态文件,动态文件直接请求tomcat,比如前缀加上/v1/
静态资源文件通过location:
location /www/{
root /data/;
index index.html
location /image/{
root /data/;
autoindex on;
ngix放静态文件,动态文件直接请求tomcat,比如前缀加上/v1/
静态资源文件通过location:
location /www/{
root /data/;
index index.html
location /image/{
root /data/;
autoindex on;