Kibana 4落后于nginx和ssl

时间:2015-10-27 22:43:57

标签: nginx elasticsearch kibana kibana-4

我已经在sgin后面成功安装了kibana3,但是现在我想添加kibana4。

到目前为止我的nginx conf:

server {
  listen                *:443;

  server_name           my.host.com;
  access_log            /var/log/nginx/my.host.com.log;

  ssl on;
  ssl_certificate /etc/nginx/ssl/server.crt;
  ssl_certificate_key /etc/nginx/ssl/server.key;

  auth_basic "Restricted";
  auth_basic_user_file /etc/nginx/conf.d/kibanaAuth;


  location / {
    root  /usr/share/nginx/kibana3;
    index  index.html  index.htm;
  }

  location /kibana4.* {
        proxy_pass http://127.0.0.1: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;
  }

访问https://my.host.com/kibana4并且kibana4服务正在运行时,我收到了404。

错误日志:

79.167.46.61 - host [28/Oct/2015:08:25:09 +0000] "GET /kibana4 HTTP/1.1" 404 570 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36" 79.167.46.61 - host [28/Oct/2015:08:25:09 +0000] "GET /favicon.ico HTTP/1.1" 200 1150 "https://my.host.com/kibana4" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36"

在kibana配置中,我只更改了es主机位置。

更新 当kibana正在运行时,将/kibana.*更改为/kibana nginx时返回502 error

错误: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 79.167.46.61, server: my.host.com, request: "GET /kibana4 HTTP/1.1", upstream: "http://127.0.0.1:5601/kibana4", host: "my.host.com"

0 个答案:

没有答案