rabbitmq UI configuration in nginx

May 14, 2015 at 7:59 am (Uncategorized)

We faced a weird issue when we proxied nginx to rabbitmq admin UI. Certain URLs would not open and would say “Not Found”. The issue is that for some URLs rabbitmq sends a %2F control character in the URL which gets scrubbed before it reaches nginx.

The fix for this is the following in nginx:

location ~*  /api/(queues|exchanges)/(.*) {

    proxy_pass http://10.0.6.182:15672/api/$1/%2F/$2;

}

Hope it helps someone.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: