Hello,
I'm working on an ubuntu machine and i want to use nginx to redirect to kibana interfaces.
I have two kibanas installed on my machine.
1st kibana url: localhost:5601
2nd kibanaurl: localhost:5602
I have nginx installed and running;
This is my kibana.yml under /etc/nginx/conf.d/
--- Begin ------------------------------------------------------------------------------------------------------
server {
listen 80;
server_name exemple.com;
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;
}
location /admin {
proxy_pass http://localhost:5602;
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;
}
}
--- End ------------------------------------------------------------------------------------------------------
the two kibanas server are running pretty good when a tape:
curl 'localhost:5601' or curl 'localhost:5602'
and nginx is reloaded after the kibana.conf's modification:
--- Begin -----------------------------------------------------------------------------------------------------
[user@machine]$ sudo /etc/init.d/nginx reload
Reloading nginx: [ OK ]
--- End -------------------------------------------------------------------------------------------------------
the problem is that i'm not able to access the second kibana via "exemple.com/admin"
exemple.com/ is returning me the 1st kibana interface.. but exemple.com/admin return me a html page in it's body "Not Found"
Is that expected?
If yes, how can i define this??
Thanks a lot
I'm working on an ubuntu machine and i want to use nginx to redirect to kibana interfaces.
I have two kibanas installed on my machine.
1st kibana url: localhost:5601
2nd kibanaurl: localhost:5602
I have nginx installed and running;
This is my kibana.yml under /etc/nginx/conf.d/
--- Begin ------------------------------------------------------------------------------------------------------
server {
listen 80;
server_name exemple.com;
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;
}
location /admin {
proxy_pass http://localhost:5602;
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;
}
}
--- End ------------------------------------------------------------------------------------------------------
the two kibanas server are running pretty good when a tape:
curl 'localhost:5601' or curl 'localhost:5602'
and nginx is reloaded after the kibana.conf's modification:
--- Begin -----------------------------------------------------------------------------------------------------
[user@machine]$ sudo /etc/init.d/nginx reload
Reloading nginx: [ OK ]
--- End -------------------------------------------------------------------------------------------------------
the problem is that i'm not able to access the second kibana via "exemple.com/admin"
exemple.com/ is returning me the 1st kibana interface.. but exemple.com/admin return me a html page in it's body "Not Found"
Is that expected?
If yes, how can i define this??
Thanks a lot