【发布时间】:2021-10-31 17:33:43
【问题描述】:
无法让 URL 重写工作。
http://my.domain/sso/my_app => http://my.domain:81/my_app
不必很复杂,对吧?
http://my.domain:81/my_app 显示预期的页面。
规则如下:
<rewrite>
<globalRules>
<rule name = "Laravel secure on port 81" enabled = "false" patternSyntax = "ECMAScript" stopProcessing = "true">
<match url = "sso /(.*)" />
<action type = "Redirect" url = "http://localhost:81/{R:1}" appendQueryString = "true" />
</rule>
</globalRules>
</rewrite>
我正在 IIS 服务器本身 http://localhost/sso/mon_app 上进行测试:没有重定向,连接失败。
我通过激活代理尝试了应用程序请求路由,通过检查或不检查“使用 URL 重写来检查传入请求”。 通过检查,它创建了一个我适应的重定向规则:
<rule name = "ARR_server_proxy" enabled = "true" patternSyntax = "ECMAScript" stopProcessing = "true">
<match url = "* sso / *" />
<action type = "Rewrite" url = "http://localhost:81/{R:1}" />
</rule>
无事可做,不行。
没有登录失败的请求。
我不知道了。
【问题讨论】:
标签: iis url-rewriting