spring cloud zuul与nginx的域名转发问题

nginx配置

在这里插入图片描述

proxy_set_header Host $http_host;

spring zuul配置

#设置转发时携带域名
  zuul:
  add-host-header: true
 #设置不忽略头信息,否则无法写入cookie
  sensitive-headers: 
发布了23 篇原创文章 · 获赞 0 · 访问量 1130

猜你喜欢

转载自blog.csdn.net/u013421917/article/details/102896968