# I want to pass proxy pass for kibana but it's not working

**URL:** <https://discuss.elastic.co/t/i-want-to-pass-proxy-pass-for-kibana-but-its-not-working/171933>\
**Category:** Elasticsearch\
**Created:** [March 12, 2019, 11:23am UTC](https://discuss.elastic.co/t/i-want-to-pass-proxy-pass-for-kibana-but-its-not-working/171933 "2019-03-12T11:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev1/32/41907_2.png) [@dev1](https://discuss.elastic.co/u/dev1)\
**Post date:** [March 12, 2019, 11:23am UTC](https://discuss.elastic.co/t/i-want-to-pass-proxy-pass-for-kibana-but-its-not-working/171933/1 "2019-03-12T11:23:28Z")

</div>

server base path is : server.basePath: "/kibana"

and here is nginx.conf file

http {  
upstream elasticsearch {  
server 127.0.0.1:9200;  
keepalive 15;  
}

server {  
listen 80;  
location /kibana {  
proxy\_pass [http://elasticsearch](http://elasticsearch);  
proxy\_http\_version 1.1;  
proxy\_set\_header Connection "Keep-Alive";  
proxy\_set\_header Proxy-Connection "Keep-Alive";  
}  
}

upstream kibana {  
server 127.0.0.1:5601;  
keepalive 15;  
}  
server {  
listen 8080;

```
location / {
  proxy_pass http://kibana;
  proxy_http_version 1.1;
  proxy_set_header Connection "Keep-Alive";
  proxy_set_header Proxy-Connection "Keep-Alive";
}

```

}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 9, 2019, 11:23am UTC](https://discuss.elastic.co/t/i-want-to-pass-proxy-pass-for-kibana-but-its-not-working/171933/2 "2019-04-09T11:23:32Z")

</div>

Closed on April 9, 2019, 11:23am UTC

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