nginx 反向代理,指向docker

2018-12-27  本文已影响10人  飞翔的鲲

请求


http://47.89.240.120/consumer/consumer
结果:
Hello consumer ok, response form provider: 172.17.0.3:20880

nginx 配置


server {
    listen       80;
    server_name  localhost;

# dubbo consumer rest api
location /consumer {
        proxy_pass   http://127.0.0.1:8083/;
    }


    }
上一篇 下一篇

猜你喜欢

热点阅读