RabbitMQ Management and IIS Proxy

337 views
Skip to first unread message

Beo Zebold

unread,
Nov 22, 2016, 9:50:32 AM11/22/16
to rabbitmq-users
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, ["*"]}]}]},




Beo Zebold

unread,
Nov 24, 2016, 11:58:28 AM11/24/16
to rabbitmq-users
Any Idea ?

Michael Klishin

unread,
Nov 24, 2016, 1:18:07 PM11/24/16
to rabbitm...@googlegroups.com
This list is probably not a very good source of Microsoft ISS advice.
All management plugin UI requests go to `/api/*`.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages