这个
-L
在你
curl
调用是为了“跟踪重定向”,这会让您感到厌烦。
Traffic Manager won't follow HTTP redirects!
因为您的端点现在返回
301 Moved Permanently
他们正在被渲染
退化
.
$ curl -Ii http://posguys-east.cloudapp.net/probe.html
HTTP/1.1 301 Moved Permanently
Content-Length: 147
Content-Type: text/html; charset=utf-8
Location: https://posguys.com/probe.html
这很可能是因为您有一个HTTP→ 您的中配置了HTTPS重定向
web.config
.
解决方案很简单,使用
https://
相反
稍后编辑
不是那么简单,看起来您的应用程序正在响应
301
重新定向
https://
也
$ curl -kIiL https://posguys-east.cloudapp.net/probe.html
HTTP/1.1 301 Moved Permanently
Content-Length: 147
Content-Type: text/html; charset=utf-8
Location: https://posguys.com/probe.html
Server: Microsoft-IIS/8.5
HTTP/1.1 200 OK
Cache-Control: max-age=5184000
Content-Length: 149
Content-Type: text/html
你需要解决这个问题。为添加例外
/probe.html
不管你在写什么重写规则。测试
卷曲
但是没有
-L
这次。