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 and then showed. For that, I set up a file in /etc/nginx/conf.d/ called kibana_proxy.conf with the following content:

   listen 80;
   location /kibana {
      rewrite */kibana/(.*) /$1 break;
      proxy_set_heather Authorization "Basic xxxxxx";

When I access to 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