Kibana 6.2.3 behind reverse proxy with sub folder?

Hi Gang,

I've been trying to get Kibana up and running at the URL which is currently getting the beloved 404 error. I'm running the standard docker image and hosting it behind the docker flow proxy which I believe should pass /kibana/ -> / onto the kibana service, the problem seems to be that brower components aren't loading at the correct URL...

Docker service definition:

- logging_nw
- proxy
- 5601:5601
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ./Kibana/kibana.yml:/etc/kibana/kibana.yml
- com.df.aclName=proxyPriorityK
- com.df.notify=true
- com.df.distribute=true
- com.df.servicePath=/kibana
- com.df.port=5601
- com.df.reqPathSearchReplace=/kibana/,/
- com.df.alertName=memlimit
- com.df.alertIf=@service_mem_limit:0.8
- com.df.alertFor=30s

Kibana config file:
server.port: 5601 ""
server.basePath: "/kibana"
elasticsearch.url: http://elasticsearch:9200

brower components aren't loading at the correct URL...

Right. Kibana thinks it is running at /, but you are actually putting the assets behind /kibana.

You need to configure Kibana with a server.basePath setting of /kibana. This will cause all the assets in the browser (links, mostly) to use the /kibana prefix on their path.

Hi, Yes I'm using that option and pasted my kibana config file at the bottom of the post:

server.basePath: "/kibana"

But i'm seeing in the browser that for example it's trying to load /bundles/... instead of /kibana/bundles...


Any ideas what's missing?

Br, Mason

Here is a log entry from kibana when going to, I can see that the reverse proxy is 'correctly' stripping out the /kibana/ sub folder:

Logging_kibana.1.uuv4bte9cgcq@privxidaas | {"type":"response","@timestamp":"2018-03-31T13:48:36Z","tags":[],"pid":1,"method":"get","statusCode":200,"req":{"url":"/app/kibana","method":"get","headers":{"cache-control":"max-age=0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36","upgrade-insecure-requests":"1","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,fi;q=0.8","host":"","x-forwarded-proto":"https","x-forwarded-for":""},"remoteAddress":"","userAgent":""},"res":{"statusCode":200,"responseTime":28,"contentLength":9},"message":"GET /app/kibana 200 28ms - 9.0B"}

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