Nginx reverse proxy for elastic cloud kibana page


I'd like to use nginx to proxy_pass a custom domain to elastic cloud kibana page.

I tried some configurations from the discussion as well as this article.

I'm testing in localhost, so binding domain name "" to /etc/hosts.

The complete configuration file is as follows.

server {
    listen       443 ssl;
    ssl    on;
    ssl_certificate        /etc/ssl/;
    ssl_certificate_key    /etc/ssl/;
    location /dir/ {

        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-Found-Cluster digiv4.kb;

        proxy_http_version 1.1;
        proxy_set_header Connection "Keep-Alive";
        proxy_set_header Proxy-Connection "Keep-Alive";
        proxy_set_header Authorization "Basic {**marking_pw**}";


when I access the nginx page...

My URL is bound using /etc/hosts and Docker expose port 4443.

I got blank page respones like

and the other css element are 404.

How to correctly configure the proxy function? Thanks !!

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