我在端口9200上的服务器上为aws弹性搜索端点设置了反向代理。我正在尝试使用/ kibana URI访问该特定服务器上的kibana。但我收到了以下错误。
Kibana did not load properly. Check the server output for more information.
Nginx代码:
对于ElasticSearch:
server {
listen 9002;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass https://search.us-west-2.es.amazonaws.com;
}
}
对于Kibana
location /kibana/ {
proxy_set_header Host https://search-es.us-west-2.es.amazonaws.com/_plugin/kibana/;
proxy_set_header X-Real-IP 34.214.177.249;
proxy_pass https://search-es.us-west-2.es.amazonaws.com/_plugin/kibana/;
proxy_redirect https://search-es.us-west-2.es.amazonaws.com/_plugin/kibana/ http://ab.cd.ef.g/kibana/;
}
For My App:
location / {
proxy_redirect off;
proxy_pass http://127.0.0.1:3054;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
}
我也遇到了很多控制台错误。
Failed to load resource: the server responded with a status of 502 (Bad Gateway).
http://ab.cd.ef.g//_plugin/kibana/ui/favicons/favicon.ico
任何暗示都将受到赞赏。
答案 0 :(得分:1)
针对Kibana的Nginx反向代理设置:
我正在使用Kibana 7.5版本,而Nginx却遇到了这个问题。我在Nginx配置文件中添加了以下条目的配置。它是固定的。
/ app | / translations | / node_modules | / built_assets / | / bundles | / es_admin | / plugins | / api | / ui | / elasticsearch | / spaces / enter
答案 1 :(得分:0)
您需要将server.basePath设置为Finaldata <- read_dta(paste("F:/AuditGovernance/Audit firmGovernance/",
"ProjectAA/1Data/GAuditFinal3Oct2016.dta", sep = ""))
如果您正在运行,可以指定安装Kibana的路径 代理人背后。这只会影响Kibana生成的网址 proxy应该在转发之前删除basePath值 要求Kibana。此设置不能以斜杠结尾(/)。