nginx配置动静分离

2023/08/23 15:07
阅读数 114

动静分离示例:

    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;
        }
    }
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部