使用nginx反向代理到不同服务器,共享同一端口配置文件

使用nginx反向代理到不同服务器(共享同一端口)配置文件

https://blog.csdn.net/wang_k_123/article/details/72779443

https://www.cnblogs.com/bayu/p/8041453.html

server {
        #侦听80端口
        listen    80;
        
        #默认请求

        location /{
            #定义首页索引
           index index.php index.html index.htm index.jsp;    

        }
        location /AMS/{
            proxy_pass http://127.0.0.1:8082/AMS/;    
        }
          location /CRMS/ {
            proxy_pass http://127.0.0.1:8083/CRMS/;     
        }

}