在nginx的nginx.conf配置文件中追加下面代码,nginx.conf一般在/usr/local/nginx/conf下面
server {
server_name 202.103.95.166;
location /web {
proxy_pass http://192.168.23.32:8899/web;
}
location /mobile {
proxy_pass http://192.168.23.32:8899/mobile;
}
location /api {
proxy_pass http://192.168.23.32:10009/api;
}
}