作者rexhuang (BlueCancer)
看板Windows
标题[教学] IIS设定了URL Rewrite但网页回应404
时间Sun Oct 6 20:06:57 2019
教学标题: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
--
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.228.10.123 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Windows/M.1570363620.A.ABA.html