当使用Nginx来配置RabbitMQ的Web页面时,查看Exchange、Queue和Channels时,遇到了the object you clicked on was not found it may have been deleted on the server.
,百思不得其解,整个代理都没有问题,配置如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 server { listen 80; server_name rabbitmq.xxx.com; client_max_body_size 5m; access_log acces.log; error_log error.log; location / { proxy_set_header Host $host; proxy_set_header X-Real-Ip $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 20m; proxy_pass http://ip:port/; port_in_redirect on; proxy_redirect off; } }
配置好像没问题,页面也可以正常访问,唯独查看不了消息的详细信息
解法
最终瞎捣鼓,发现还是配置的问题,把proxy_pass修改为proxy_pass http://ip:port
,把最后的/
去掉即可