发布时间:2025-12-10 23:33:04 浏览次数:1
proxy_set_headerHost$http_host;
#设置转发时携带域名zuul:add-host-header:true#设置不忽略头信息,否则无法写入cookiesensitive-headers:
Zuul问题
给zuul的配置文件添加下列不起作用
zuul:add-proxy-headers:true#注意这个proxy
是添加错了!!!
#add-proxy-headers:true是错的add-host-header:true#才是对的
看完上述内容,你们对spring cloud zuul与nginx的域名转发问题如何解决有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注本站行业资讯频道,感谢大家的支持。