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;
}
}
}
标签:http,请求,转发,nginx,location,pass,localhost,proxy From: https://www.cnblogs.com/huxiaoan1/p/17675599.html时间:2023-09-03 晚上