我可以配置IIS将流量路由到另一台服务器吗?

时间:2019-07-24 19:20:12

标签: wordpress ubuntu iis virtual blogs

我有一个website.com可用的Windows服务器,另外还有一个带有WordPress的服务器。

如何配置IIS将website.com/blog路由到我的WordPress?

我尝试使用虚拟目录,但只能将用户发送到同一服务器。

2 个答案:

答案 0 :(得分:0)

根据您的描述,建议您考虑使用ARR反向代理来满足您的要求。

我建议您可以使用此link和此link安装ARR。

那么我建议您可以尝试使用以下url重写规则。

            <rule name="ReverseProxyInboundRule2" stopProcessing="true">
                <match url="/blog/(.*)" />
                <action type="Rewrite" url="http://ec2 ubuntu address/{R:1}" />
            </rule>

答案 1 :(得分:0)

谢谢,它起作用了,但是我不得不在web.config中添加更多代码。

我的web.config:

$row = Bestellung::findAll([‘id’=>$id]); 
相关问题