Azure应用程序网关不发送主机头 [英] Azure application gateway doesn't send host headers

查看:52
本文介绍了Azure应用程序网关不发送主机头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,应用程序网关WAF不会将主机标头发送到后端nginx服务器,或者至少发送这样的标头,使nginx无法读取它.我有2个"server_name"在nginx中配置,但是无论我通过WAF调用哪个域 转到第一个server_name配置规则.这是怎么回事?

I noted that application gateway WAF doesn't send host headers to backend nginx server, or at least sends in such a header that nginx doesn't read it. I have 2 "server_name" configured in nginx but no matter which domain I call through WAF it all goes to the first server_name config rule. What is the deal here?

推荐答案

你好,她,

在单个应用程序网关实例上托管多个网站涉及配置元素,例如后端侦听器,为现有后端池设置路由规则.我可以为您提供有关如何托管多个网站的清晰文档 通过WAF的单个应用程序网关,以便您对此问题有更好的了解.以下是链接,

Hosting multiple websites on single application gateway instance involves in configuring elements like Backend Listeners,Routing rules setup for your existing backend pools. I can provide you with a clear documentation on how to host multiple websites on a single application gateway through WAF for your better understanding on this issue.Here is the link,

https://docs.microsoft.com/zh-cn/azure/application-gateway/tutorial-multiple-sites-powershell

https://docs.microsoft.com/en-us/azure/application-gateway/tutorial-multiple-sites-powershell

希望这对您有所帮助,如果您已经阅读了上一篇文章,那么请向我提供有关如何使用虚拟变量设置路由规则的网络体系结构,我可以为您提供可能的解决方案.

Hope this is helpful for you and in case you have already gone though the above article then please provide me with the network architecture as to how routing rules are setup using dummy variables and I can suggest you possible solutions accordingly. 


这篇关于Azure应用程序网关不发送主机头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆