# Proxy is not working in 4.4 kibana

**URL:** <https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045>\
**Category:** Kibana\
**Created:** [May 3, 2016, 11:28am UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045 "2016-05-03T11:28:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreenivasu](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sreenivasu](https://discuss.elastic.co/u/sreenivasu)\
**Post date:** [May 3, 2016, 11:28am UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/1 "2016-05-03T11:28:50Z")

</div>

Dear Team,

I added serverbase/baseurl in the kibana.yml. It is not taking that . Could you please tell me how to add proxy to kibana4.4

Thanks In Advance.

Regards  
Sreenivasu

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [May 4, 2016, 12:38pm UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/2 "2016-05-04T12:38:53Z")

</div>

Can you share the following information, please?

1. The exact line from `kibana.yml` where you are setting the server basepath.
2. The entire output of running `./bin/kibana`.

---

<div class="post-metadata">

**Author:** ![sreenivasu](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sreenivasu](https://discuss.elastic.co/u/sreenivasu)\
**Post date:** [May 4, 2016, 1:58pm UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/3 "2016-05-04T13:58:28Z")

</div>

Dear Shaunak,

Please find the requested data.

## Kiabana.yml

# Kibana is served by a back end server. This controls which port to use.

server.port: 5601

# The host to bind the server to.

server.host: "192.168.17.73"

# If you are running kibana behind a proxy, and want to mount it at a path,

# specify that path here. The basePath can't end in a slash.

server.basePath: "/kibana"

# The maximum payload size in bytes on incoming server requests.

# server.maxPayloadBytes: 1048576

# The Elasticsearch instance to use for all your queries.

elasticsearch.url: "[http://192.168.17.73:9200](http://192.168.17.73:9200)"

# preserve\_elasticsearch\_host true will send the hostname specified in `elasticsearch`. If you set it to false,

# then the host you use to connect to _this_ Kibana instance will be sent.

# elasticsearch.preserveHost: true

# Kibana uses an index in Elasticsearch to store saved searches, visualizations

# and dashboards. It will create a new index if it doesn't already exist.

kibana.index: ".kibana"

# The default application to load.

kibana.defaultAppId: "discover"

# If your Elasticsearch is protected with basic auth, these are the user credentials

# used by the Kibana server to perform maintenance on the kibana\_index at startup. Your Kibana

# users will still need to authenticate with Elasticsearch (which is proxied through

# the Kibana server)

# elasticsearch.username: "user"

# elasticsearch.password: "pass"

# SSL for outgoing requests from the Kibana Server to the browser (PEM formatted)

# server.ssl.cert: /path/to/your/server.crt

# server.ssl.key: /path/to/your/server.key

# Optional setting to validate that your Elasticsearch backend uses the same key files (PEM formatted)

# elasticsearch.ssl.cert: /path/to/your/client.crt

# elasticsearch.ssl.key: /path/to/your/client.key

# If you need to provide a CA certificate for your Elasticsearch instance, put

# the path of the pem file here.

# [elasticsearch.ssl.ca](http://elasticsearch.ssl.ca): /path/to/your/CA.pem

# Set to false to have a complete disregard for the validity of the SSL

# certificate.

# elasticsearch.ssl.verify: true

# Time in milliseconds to wait for elasticsearch to respond to pings, defaults to

# request\_timeout setting

# elasticsearch.pingTimeout: 1500

# Time in milliseconds to wait for responses from the back end or elasticsearch.

# This must be \> 0

# elasticsearch.requestTimeout: 300000

# Time in milliseconds for Elasticsearch to wait for responses from shards.

# Set to 0 to disable.

# elasticsearch.shardTimeout: 0

# Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying

# elasticsearch.startupTimeout: 5000

# Set the path to where you would like the process id file to be created.

# pid.file: /var/run/kibana.pid

# If you would like to send the log output to a file you can set the path below.

# logging.dest: stdout

# Set this to true to suppress all logging output.

# logging.silent: false

# Set this to true to suppress all logging output except for error messages.

# logging.quiet: false

# Set this to true to log all events, including system usage information and all requests.

# logging.verbose: false

## Kiaban.log

log [19:12:20.680] [info][optimize] Optimizing and caching bundles for kibana and statusPage. This may take a few minutes  
log [19:12:58.241] [info][optimize] Optimization of bundles for kibana and statusPage complete in 37.56 seconds  
log [19:12:58.268] [info][status][plugin:kibana] Status changed from uninitialized to green - Ready  
log [19:12:58.313] [info][status][plugin:elasticsearch] Status changed from uninitialized to yellow - Waiting for Elasticsearch  
log [19:12:58.334] [info][status][plugin:kbn\_vislib\_vis\_types] Status changed from uninitialized to green - Ready  
log [19:12:58.340] [info][status][plugin:markdown\_vis] Status changed from uninitialized to green - Ready  
log [19:12:58.355] [info][status][plugin:metric\_vis] Status changed from uninitialized to green - Ready  
log [19:12:58.359] [info][status][plugin:spyModes] Status changed from uninitialized to green - Ready  
log [19:12:58.362] [info][status][plugin:elasticsearch] Status changed from yellow to green - Kibana index ready  
log [19:12:58.363] [info][status][plugin:statusPage] Status changed from uninitialized to green - Ready  
log [19:12:58.367] [info][status][plugin:table\_vis] Status changed from uninitialized to green - Ready  
log [19:12:58.383] [info][listening] Server running at [http://192.168.17.73:5601](http://192.168.17.73:5601)

Thanks  
Sreenivasu

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [May 4, 2016, 2:15pm UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/4 "2016-05-04T14:15:11Z")

</div>

All of that looks good. When you say (in your original post), "it is not taking that", what exactly is happening? Any errors you can post here?

---

<div class="post-metadata">

**Author:** ![sreenivasu](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sreenivasu](https://discuss.elastic.co/u/sreenivasu)\
**Post date:** [May 4, 2016, 2:41pm UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/5 "2016-05-04T14:41:32Z")

</div>

[http://172.29.106.161:5601](http://172.29.106.161:5601) , If I add server.basePath: "/kibana" in kibana.yml ,  
I can use the url like this [http://172.29.106.161/kibana](http://172.29.106.161/kibana) in old version of kibana, where as in nwe version it is not working.

Basically I am trying to avoid the port number.

Thanks  
Sreenivasu

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [May 4, 2016, 3:16pm UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/6 "2016-05-04T15:16:09Z")

</div>

What proxy are you using? Can you share your proxy config as well? I can try to reproduce this issue.

---

<div class="post-metadata">

**Author:** ![sreenivasu](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sreenivasu](https://discuss.elastic.co/u/sreenivasu)\
**Post date:** [May 6, 2016, 5:27am UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/7 "2016-05-06T05:27:01Z")

</div>

I am using ngnix proxy.

location ~\* /kibana {  
access\_log /var/log/nginx/kibana.access.log main;  
error\_log /var/log/nginx/kibana.error.log;  
rewrite ^/$ /kibana/$1 break;  
rewrite ^/kibana/(.\*) /kibana/$1 break;  
proxy\_pass http://kibana\_tool\_v1;  
proxy\_redirect off;  
proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
proxy\_set\_header Host $http\_host;  
proxy\_set\_header X-NginX-Proxy true;  
}

---

<div class="post-metadata">

**Author:** ![sreenivasu](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sreenivasu](https://discuss.elastic.co/u/sreenivasu)\
**Post date:** [May 11, 2016, 4:47am UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/8 "2016-05-11T04:47:11Z")

</div>

Dear Shaunak,

Did you get chance to check this.

Thanks  
Sreeni

---

<div class="post-metadata">

**Author:** ![sreenivasu](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sreenivasu](https://discuss.elastic.co/u/sreenivasu)\
**Post date:** [May 25, 2016, 6:06am UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/9 "2016-05-25T06:06:22Z")

</div>

Any update would be appriciated.

Thanks  
Sreeni

---

<div class="post-metadata">

**Author:** ![Marcin\_Kubica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_kubica/32/5614_2.png) [@Marcin\_Kubica](https://discuss.elastic.co/u/Marcin_Kubica)\
**Post date:** [June 3, 2016, 8:22am UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/10 "2016-06-03T08:22:17Z")

</div>

Here's my nginx conf

```auto
$ cat /etc/nginx/conf.d/kibana.conf
server {
    listen 80;
    server_name kibana;

    error_log /var/log/nginx/kibana.error.log;
    access_log /var/log/nginx/kibana.access.log;

     location / {
        rewrite ^/(.*) /$1 break;
        proxy_ignore_client_abort on;
        proxy_pass http://localhost:5601;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_read_timeout 6m;
        }
}

```

---

<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:** [July 6, 2017, 1:51pm UTC](https://discuss.elastic.co/t/proxy-is-not-working-in-4-4-kibana/49045/11 "2017-07-06T13:51:38Z")

</div>


