IIS ARR 反向代理仅适用于现有资源 URL
IIS ARR reverse proxy only works for existing resource URLs
我的 IIS 中安装了 URL Rewrite & ARR:
IIS machine dashboard
并且启用了 ARR 代理:
Server proxy setting
我的 IIS 中有一个 .net 应用程序。
a local .net app site
里面有2个文件。 WebForm1.aspx 和 WebForm2.aspx
.net project
如果我设置 URL Rewrite from webform1.aspx 到外部网站,它会起作用
URL Rewrite rule
browser log
但是如果我设置成webform3.aspx,它会显示404。好像这个规则对不存在的页面不生效。
error page
如果我们启用失败的请求跟踪,那么我们会注意到重写规则已成功。
然后问题是asp.net管道制动它。
如果您在空网站上尝试,它会起作用。
所以当你反向代理到外部网站时,你最好小心。
我的 IIS 中安装了 URL Rewrite & ARR: IIS machine dashboard
并且启用了 ARR 代理: Server proxy setting
我的 IIS 中有一个 .net 应用程序。 a local .net app site
里面有2个文件。 WebForm1.aspx 和 WebForm2.aspx .net project
如果我设置 URL Rewrite from webform1.aspx 到外部网站,它会起作用 URL Rewrite rule browser log
但是如果我设置成webform3.aspx,它会显示404。好像这个规则对不存在的页面不生效。 error page
如果我们启用失败的请求跟踪,那么我们会注意到重写规则已成功。
然后问题是asp.net管道制动它。
如果您在空网站上尝试,它会起作用。
所以当你反向代理到外部网站时,你最好小心。