Search code examples
wordpressubuntuiisvirtualblogs

Can I configure IIS to route traffic to another server?


I have a Windows server available at website.com, and I have another server with a WordPress on it.

How can I configure IIS to route website.com/blog to my WordPress?

I tried to use virtual directories, but I can only send my user to the same server.


Solution

  • According to your description, I suggest you could consider using ARR reverse proxy to achieve your requirement.

    I suggest you could install the ARR by using this link and this link.

    Then I suggest you could try to use below url rewrite rule.

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