[rabbitmq-discuss] object not found in RabbitMQ admin panel

Václav Matouch vaclav.matouch at gmail.com
Fri Aug 31 21:43:18 BST 2012


The problem was the trailing slash. This worked for me:

    location /rabbit/ {
        proxy_pass              http://localhost:55672;
        proxy_set_header        Host $http_host;
        rewrite                 ^/rabbit/(.*)$ /$1 break;
    }

    location /rabbit {
        rewrite                 ^(.*)$ /rabbit/ permanent;
    }

Dne středa, 2. listopadu 2011 12:13:53 UTC+1 Simon MacMullen napsal(a):
>
> On 02/11/11 09:52, Emile Joubert wrote:
> > We don't have an equivalent nginx config, so it would be very useful if
> > you could confirm how to do that. Proxies must not canonicalise or
> > modify URLs.
>
> To be more specific, it's very common in the mgmt plugin to have URL 
> paths that look like
>
> /api/queues/%2f/myqueue
>
> We've seen Apache rewrite this as:
>
> /api/queues///myqueue
>
> which then doesn't work. To the best of my reading ability this violates 
> RFC 3986. Apache needs to be told "nocanon" in order not to do that - 
> nginx may also be similarly confused.
>
> If you turn on HTTP request logging (see 
> http://www.rabbitmq.com/management.html) you can see if nginx is doing 
> such rewriting.
>
> If you do get a working nginx config, please let us know and I'll add it 
> to the website.
>
> Cheers, Simon
>
> -- 
> Simon MacMullen
> RabbitMQ, VMware
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq... at lists.rabbitmq.com <javascript:>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120831/d093bb77/attachment.htm>


More information about the rabbitmq-discuss mailing list