Kibana behind reverse proxy (nginx) on a different route

Hello everybody!

I'm trying to set up a different path than / in a Nginx server as reverse proxy. I would like that the users can access to myserver.com/kibana and then https://....elastic-cloud.com:xxxxis showed. For that, I set up a file in /etc/nginx/conf.d/ called kibana_proxy.conf with the following content:

server{
   listen 80;
   server_name: myserver.com;
   location /kibana {
      rewrite */kibana/(.*) /$1 break;
      proxy_set_heather Authorization "Basic xxxxxx";
      proxy_pass https://....elastic-cloud.com:xxxx;
   }
}

When I access to myserver.com/kibana only shows the following message:

{"statusCode":404,"message":"Cannot GET /s/myspace/spaces/enter","error":"Not Found"}

myspace is the space created and assigned to the user configurated in the line proxy_set_header Authorization of nginx configuration file.

What am I doing wrong?

Should I setting up something more in kibana configuration file?

Thank you in advance!

@jportner can we please get some help here?

Thank you
Bhavya

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

Sorry for the late reply, something is up with my notifications and I just saw this.

@mar-ro I'm not an nginx expert but I noticed that you specified proxy_set_heather in your config, I think you meant proxy_set_header? Maybe try changing it and see if that works.