nginx 请求转发

1、修改启动端口 因为80端口容易冲突

2、配置服务器地址 在http中添加下面的配置

http {
    server {
                listen       9001;
                server_name  localhost;

                location ~ /acl/ {           
                    proxy_pass http://localhost:8201;
                }      

                location ~ /sys/ {           
                    proxy_pass http://localhost:8202;
                }
        }
}

时间:2023-09-03 晚上

posted @ 2023-09-03 21:10  有何和不可  阅读(13)  评论(0)    收藏  举报