У меня есть сервер Windows, доступный по адресу website.com, и у меня есть другой сервер с WordPress.
Как настроить IIS для маршрутизации website.com/blog к моему WordPress?
Я пытался использовать виртуальные каталоги, но могу отправить своего пользователя только на тот же сервер.

Согласно вашему описанию, я предлагаю вам рассмотреть возможность использования обратного прокси-сервера ARR для достижения ваших требований.
Я предлагаю вам установить ARR, используя этот связь и этот связь.
Тогда я предлагаю вам попробовать использовать правило перезаписи URL ниже.
<rule name = "ReverseProxyInboundRule2" stopProcessing = "true">
<match url = "/blog/(.*)" />
<action type = "Rewrite" url = "http://ec2 ubuntu address/{R:1}" />
</rule>
Спасибо, это сработало, но мне пришлось добавить больше кода в мой web.config.
Мой web.config:
<rewrite>
<rules>
<clear />
<rule name = "Route the requests for Company1" enabled = "true" patternSyntax = "ECMAScript" stopProcessing = "false">
<match url = "(.*)" />
<conditions>
<add input = "{CACHE_URL}" pattern = "^(https?)://" />
</conditions>
<action type = "Rewrite" url = "https://blog.raczum.com/{R:0}" />
<serverVariables>
<set name = "HTTP_ACCEPT_ENCODING" value = "" />
</serverVariables>
</rule>
<rule name = "Route the subfolder blog" enabled = "false" patternSyntax = "Wildcard" stopProcessing = "false">
<match url = "https://raczum.com/blog/*" />
<conditions>
<add input = "{CACHE_URL}" pattern = "^(https?)://" />
</conditions>
<action type = "Rewrite" url = "https://blog.raczum.com/{R:1}" />
<serverVariables>
<set name = "HTTP_ACCEPT_ENCODING" value = "" />
</serverVariables>
</rule> </rules>
<outboundRules>
<rule name = "ReverseProxyOutboundRule1" preCondition = "ResponseIsHtml1" enabled = "true" stopProcessing = "false">
<match filterByTags = "A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern = "^http(s)?://blog.raczum.com/(.*)" />
<action type = "Rewrite" value = "/blog/{R:2}" />
<conditions logicalGrouping = "MatchAny" trackAllCaptures = "false" />
</rule>
<rule name = "RewriteRelativePaths" preCondition = "ResponseIsHtml1" enabled = "true" stopProcessing = "false">
<match filterByTags = "A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern = "^http(s)?://blog.raczum.com/(.*)$" negate = "false" />
<action type = "Rewrite" value = "/blog/{R:2}" />
</rule>
<preConditions>
<preCondition name = "ResponseIsHtml1" patternSyntax = "Wildcard">
<add input = "{RESPONSE_CONTENT_TYPE}" pattern = "*" />
</preCondition>
<preCondition name = "ResponseIsHtml2">
<add input = "{RESPONSE_CONTENT_TYPE}" pattern = "^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>