docker-library / rabbitmq

Docker Official Image packaging for RabbitMQ
http://www.rabbitmq.com/
MIT License
780 stars 412 forks source link

Error: undefined: There is no template at js/tmpl/login.ejs undefined #664

Closed peppies closed 1 year ago

peppies commented 1 year ago

RabbitMQ 3.12.4 Erlang 26.0.2 Nginx 1.23.2

Enabled Plugins: rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatch amqp_client cowboy cowlib

Greetings,

I am trying to get RabbitMQ Management UI to work on a website URL: http://mywebsite.com/rabbitmq/

However, I am receiving this error in an orange bar at the bottom of the page: undefined: There is no template at js/tmpl/login.ejs undefined

I looked in Chrome's network and other files are loading, just not login.ejs. Here is a screenshot:

rabbitmq-error

The UI does work on my server IP address though: http://[server-ip-address]:15672/

I have added the following to my Nginx server block for the domain name, which is referenced in the RabbitMQ Management Docs - https://www.rabbitmq.com/management.html#http-api-proxy:

location ~* /rabbitmq/api/(.*?)/(.*) {
  proxy_pass http://localhost:15672/api/$1/%2F/$2?$query_string;
}

location ~* /rabbitmq/(.*) {
  rewrite ^/rabbitmq/(.*)$ /$1 break;
  proxy_pass http://localhost:15672;
}

Seems like it should be working, but it is not.