动静分离示例:
server {
listen 85 default_server;
server_name localhost;
server_tokens off;
location / {
root /opt/elsmp/elsmp-web;
index index.html index.htm;
}
location /files {
root /opt/elsmp/xxx;
#目录浏览功能
autoindex on;
autoindex_localtime on;
}
location /portal {
proxy_pass http://127.0.0.1:8085/portal;
}
}