[教学] IIS设定了URL Rewrite但网页回应404

楼主: rexhuang (BlueCancer)   2019-10-06 20:06:57
教学标题:IIS设定了URL Rewrite但网页回应404
系统:Windows Server 2016的IIS
内容:
Pattern设定如下
http://localhost:8080/{R:0}
Rewrite URL设定如下
(examples.+)
因为SSL凭证设定在IIS,目的是把https请求导到Tomcat
但是设定好之后用浏览器连https和http都是HTTP 404 Not Found
但用Test pattern测试都是符合的
后来找到一篇文章
https://forums.iis.net/t/1238069.aspx
Did you enable the proxy in IIS manager->server node->application request
routing cache->proxy setting->enable.
发现还需要安装IIS的ARR(Application Request Routing)模组
安装ARR模组并启用"Enable proxy"就正常了
Microsoft Application Request Routing 3.0 (x64)
https://www.microsoft.com/en-us/download/details.aspx?id=47333

Links booklink

Contact Us: admin [ a t ] ucptt.com