使用nginx反向代理RabbitMQ的web界面

直接贴nginx的conf配置:

server {
    listen    80;
    server_name www.xxxxx.com;

    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://localhost:15672;
        proxy_set_header   Host   $host;
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
posted @ 2020-03-27 18:45  哈喽哈喽111111  阅读(5140)  评论(0编辑  收藏  举报