通过网络服务器访问 RabbitMQ

Accessing RabbitMQ through webserver

我在 EC2 实例上有一个 RabbitMQ 服务器 运行,还有一个指向在 Route53 中配置的实例的 URL 地址,我用它来访问 RabbitMQ 网络 UI。 我可以使用 Nginx 或 Apache 访问 UI 就好了,但是当我试图查看特定队列或交换的页面时,我收到一条错误消息,说找不到该对象。当我直接通过 IP:Port url.

访问 UI 时,不会发生此行为

我注意到这是一个已知错误,已在此处解决 - https://fatalfailure.wordpress.com/2012/11/16/nginx-as-reverse-proxy-for-rabbitmq-mochiweb-server/

我已尝试使用以下 Apache 配置实施此 post 中列出的修复 -

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyRequests Off
    ServerName stage-rabbithq.apester.com 
    ServerAlias stage-rabbithq.apester.com
    ProxyPass /api http://localhost:15672/api nocanon
    ProxyPass / http://localhost:15672/
    ProxyPassReverse / http://localhost:15672/
</VirtualHost>

但错误依然存在。 有人对此错误有解决方案吗?

我已经解决了,问题是忘记将以下行添加到我的站点 conf 文件中 -

AllowEncodedSlashes On

希望有一天这对某人有所帮助。