Nginx reverse proxy for kibana

I am using this part in nginx config file

location ~ ^/kibana(.*) {
        rewrite /kibana/(.*) /$1  break;
        proxy_pass http://core-services-local-nginx-ingress-controller.kube-system:80;
        proxy_redirect off;
        proxy_set_header Host "kibana-service-local";

but the issue is ,when i do localhost/kibana/ it is redirecting to localhost/app/kibana and displaying 4o4 not found .

why it is happening? how to resolve this issue?

Hi there, I'm not an nginx expert, but you may need to set the server.basePath setting in kibana.yml to /kibana. Here are some related threads that have been brought up before which you may find helpful:

thanks,its working

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.