同时使用nginx和zuul配置

配置文件

$ ls -lrt
-rw-r--r-- 1 root root  826 May 10 10:56 nginx.conf
$ pwd
/etc/nginx

增加配置

在http {}里

    upstream nginx_zuul {
        server XXXX: 8769;
   }
   server {
        listen 80;
        location / {
                proxy_pass http://nginx_zuul;
                proxy_set_header Host $host:$server_port;
    }
   }

XXXX:8769是zuul的ip和端口

猜你喜欢

转载自www.cnblogs.com/ouyida3/p/9031717.html
今日推荐