Redirect Kibana through Sub Location /kibana with Nginx in a cluster


I have a Nginx node and a Kibana node. My Nginx is like this ;

location /kibana/ {
rewrite ^/kibana/(.*)$ /$1 break;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;

But when I go to my domainname/kibana I either get error 404 or error 502 Bad Gateway.

What am I doing wrong ? (I know this question has been asked but none of the solutions work for me !)


(system) #2

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