我有负载均衡器和带有 rabbitmq 代理的 vm。如果我要创建rabbitmq的代理,则在rabbitmq上使用插件管理打开5672端口recive
curl:(52)来自服务器的空回复
我可以通过 telnet 连接到 rmq 服务器并进行回调
curl:(56)Recv失败:对等方重置连接
Nginx 配置
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;
}
}