#Nginx动静分离 ->通过Nginx将动态请求和静态请求分离
#例:
#server{
#root /opt/app/code;
#location ~ \.jsp$ {
# proxy_pass http://java_api;
# index index.html index.htm;
#}
#
#location ~ \.(jpg|png|gif)$ {
# expires 1h;
# gzip on;
#}
#}
#Nginx动静分离 ->通过Nginx将动态请求和静态请求分离
#例:
#server{
#root /opt/app/code;
#location ~ \.jsp$ {
# proxy_pass http://java_api;
# index index.html index.htm;
#}
#
#location ~ \.(jpg|png|gif)$ {
# expires 1h;
# gzip on;
#}
#}