2016-02-15 173 views
0

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

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

我试图实现在这篇文章中列出的修补程序,使用以下Apache配置 -

<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> 

但是错误占上风。 有没有人有这个错误的解决方案?

回答

0

我已经解决了,问题就忘记了下面的行添加到我的网站的conf文件 -

AllowEncodedSlashes On 

希望这可以帮助别人,总有一天。