我正在为我的网站使用反向代理规则。一切正常。现在,我想应用gzip压缩,我尝试了几件事,但是它停止了我的网站。我正在服务器上部署Angular Universal
。
有人可以帮我制定适当的规则吗?
<rewrite>
<rules>
<remove name="Plesk. SSL redirect for #23" />
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://example.com:5001/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://example.com:5001/(.*)" />
<action type="Rewrite" value="http{R:1}://example.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>