<p>On my AKS cluster I have a Nginx ingress controller that I used to reverse proxy my kibana service running on the AKS. I want to however add another http services through the ingress, rabbitmq management console.</p>

<p>I'm unable to get both to work with the following configuration:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-aegis
  namespace: dev
  annotations:
    kubernetes.io/ingress.class: nginx
    certmanager.k8s.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/rewrite-target: /    
spec:
  tls:
  - hosts:
    - dev.endpoint.net
    secretName: dev-secret   
  rules:
  - host: dev.endpoint.net
    http:
      paths:
      - path: /
        backend:
          serviceName: kibana-kibana
          servicePort: 5601
      - path: /rabbit
        backend:
          serviceName: rabbitmq
          servicePort: 15672
</code></pre>

<p>The Kibana works fine at root however RabbitMQ fails to load with a <code>503</code> with any path except <code>/</code>. If RabbitMQ's path is <code>/</code> then it works fine but then Kibana won't run.</p>

<p>I assume this is because internally they are sitting on the root aka localhost:15672 so it redirects to / on dev.endpoint.net. </p>

<p>How do I have multiple services like Kibana and RabbitmQ running from one endpoint? </p>

Softey
<p>For RabbitMQ Management UI via ingress, set the following in the rabbitmq.conf file (you can use configmaps and mount the file inside the pod)</p>
<blockquote>
<p>management.path_prefix = /rabbit</p>
</blockquote>
<p>In the Ingress set the following :</p>
<pre><code>...
   path: /rabbit(/|$)(.*)
...
</code></pre>
<p>See : <a href="https://www.rabbitmq.com/management.html#path-prefix" rel="nofollow noreferrer">https://www.rabbitmq.com/management.html#path-prefix</a></p>
