title: RabbitMQ managment Nginx proxy
body: <p>I have loadbalancer and vm with rabbitmq broker. On rabbitmq open 5672 port with plugin managment if I am create proxy to rabbitmq recive </p>
  
  <blockquote>
    <blockquote>
      <p>curl: (52) Empty reply from server</p>
    </blockquote>
  </blockquote>
  
  <p>I am can connect with telnet to rmq server and have callback </p>
  
  <blockquote>
    <blockquote>
      <p>curl: (56) Recv failure: Connection reset by peer</p>
    </blockquote>
  </blockquote>
  
  <p>Nginx config</p>
  
  <pre><code>server {
      listen    xxx.xxx.xxx.yy:80;
      server_name xxxxxxxxxx
      access_log acces.log;
      error_log error.log;
      location / {
              client_body_buffer_size 128k;
              proxy_send_timeout   90;
              proxy_read_timeout   90;
              proxy_buffer_size    4k;
              proxy_buffers     16 32k;
              proxy_busy_buffers_size 64k;
              proxy_temp_file_write_size 64k;
              proxy_connect_timeout 30s;
              proxy_pass   http://xxx.xxx.xxx.xx:5672;
              proxy_set_header   Host   $host;
              proxy_set_header   X-Real-IP  $remote_addr;
              proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
      }
  }
  </code></pre>