# How to configure kibana.conf file

**URL:** <https://discuss.elastic.co/t/how-to-configure-kibana-conf-file/82385>\
**Category:** Kibana\
**Created:** [April 14, 2017, 7:21am UTC](https://discuss.elastic.co/t/how-to-configure-kibana-conf-file/82385 "2017-04-14T07:21:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnages](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bvnages](https://discuss.elastic.co/u/bvnages)\
**Post date:** [April 14, 2017, 7:21am UTC](https://discuss.elastic.co/t/how-to-configure-kibana-conf-file/82385/1 "2017-04-14T07:21:39Z")

</div>

How to configure elastic search and kibana in nginx server.

nginx --\> conf.d--\>kibana.conf

In that kiabana we adding bellow script.

server {  
listen 80;

server\_name Linux;

# auth\_basic "Restricted Access";

# auth\_basic\_user\_file /etc/nginx/htpasswd.users;

location / {  
proxy\_pass [http://localhost:5601](http://localhost:5601);  
proxy\_http\_version 1.1;  
proxy\_set\_header Upgrade $http\_upgrade;  
proxy\_set\_header Connection 'upgrade';  
proxy\_set\_header Host $host;  
proxy\_cache\_bypass $http\_upgrade;  
}  
#auth\_basic "Restricted Access";  
#auth\_basic\_user\_file /etc/nginx/htpasswd.users;

location /es/ {  
auth\_basic "Restricted Access";  
auth\_basic\_user\_file /etc/nginx/htpasswd.users;  
proxy\_pass [http://localhost:9200/;](http://localhost:9200/;)  
}  
}

Above configuration after I run the nginx , elastic, kibana. But here nginx is working ,kibana ,elastic is getting error.  
404 error.

We download the elastic search tar and kibana tar .we unzipped and run the kibana and elastic search. we are not changing in kibana.yml file .it is required or not.

Here anything pending .

could you please tell me.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [April 14, 2017, 7:34pm UTC](https://discuss.elastic.co/t/how-to-configure-kibana-conf-file/82385/2 "2017-04-14T19:34:58Z")

</div>

Have you tried following a tutorial such as this one?

> **[How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS 7 |...](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-centos-7)**
>
> In this tutorial, we will go over the installation of the Elasticsearch ELK Stack on CentOS 7—that is, Elasticsearch 2.1.x, Logstash 2.1.x, and Kibana 4.3.x. We will also show you how to configure it to gather and visualize the syslogs of your...

---

<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:** [May 12, 2017, 7:36pm UTC](https://discuss.elastic.co/t/how-to-configure-kibana-conf-file/82385/3 "2017-05-12T19:36:07Z")

</div>

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