server {
listen 9001
server_name 192.168.31.136;
location ~ /hosp/ {
proxy_pass http://192.168.31.136:8202;
}
location ~ /cmn/ {
proxy_pass http://192.168.31.136:8203;
}
}
//主机192.168.31.136:9001,虚拟机可以拦截吗
}
}