同时使用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和端口

文章来自:https://www.cnblogs.com/ouyida3/p/9031717.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3