How to configure kibana.conf file

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;
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/;
}
}

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.

Have you tried following a tutorial such as this one?

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