Hello,
As I only can go into my server using the 80 port, I'm trying to publish the RabbitMQ manaegment website using IIS URL rewrite.
rabbitmq.mydomain.tld -> localhost:15672
my web.config file is :
<configuration>
<system.web>
<customErrors mode="off" />
</system.web>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{CACHE_URL}" pattern="^(https?)://" />
</conditions>
<serverVariables>
<set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
<set name="HTTP_ACCEPT_ENCODING" value="" />
</serverVariables>
<action type="Rewrite" url="{C:1}://localhost:15672/{R:1}" logRewrittenUrl="true" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://localhost:15672/(.*)" />
<action type="Rewrite" value="http{R:1}://rabbitmq.mydomain.tld/{R:2}" />
</rule>
<rule name="RestoreAcceptEncoding" preCondition="NeedsRestoringAcceptEncoding">
<match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.*)" />
<action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
<preCondition name="NeedsRestoringAcceptEncoding">
<add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".+" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>
All is correct but ...
When I navigate to the "Queues" tab and click on the queue whom I want more details, it open "
http://rabbitmq.mydomain.tld/#/queues/%2F/myQueue" but I get a "Not Found message"
I think I missed a rule but I can't find which one.
Any help would be appreciated.
Regards
Beo Zebold
PS: my rabbitmq.config file has :
{rabbitmq_management,[{cors_allow_origins, ["*"]}]}]},