关于IIS URL 重写, 规则模式

准备

不说话,先为IIS安装URL 重写组件,ARR组件。

http://www.iis.net/downloads/microsoft/application-request-routing

启动ARR, Enable proxy。

https://www.iis.net/downloads/microsoft/url-rewrite 

操作

设置当前对外访问站点的端口是8010,我们期望通过访问当前站点加上特定虚拟节点,指向其他的站点,达到url重写的目的。

假设我们另外有一个站点端口是8105.

对于8010指向的站点操作。点击URL重写-->空白规则-->编辑入站规则 

我们可以通过http://localhost:8010/url_test, 实际访问到http://localhost:8105

猜你喜欢

转载自blog.csdn.net/wangweimic/article/details/88709952