码迷,mamicode.com
首页 > 其他好文 > 详细

同时使用nginx和zuul配置

时间:2018-05-13 13:42:56      阅读:2799      评论:0      收藏:0      [点我收藏+]

标签:server   head   cat   ls -l   使用   增加   /etc/   roo   pwd   

配置文件

$ 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和端口

同时使用nginx和zuul配置

标签:server   head   cat   ls -l   使用   增加   /etc/   roo   pwd   

原文地址:https://www.cnblogs.com/ouyida3/p/9031717.html

(1)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!