gpt4 book ai didi

amazon-web-services - Kibana没有正确加载。使用Nginx反向代理设置后

转载 作者:行者123 更新时间:2023-12-02 22:29:40 25 4
gpt4 key购买 nike

我已在端口9200上的服务器上为aws flex 搜索端点设置了反向代理。我试图使用/ 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;
}
}

对于基巴纳
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/;
}

对于我的应用程序:
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

任何提示将不胜感激。

最佳答案

用于Kibana的Nginx反向代理设置:

我正在使用Nginx遇到此问题的Kibana 7.5版本。我在Nginx配置文件中添加了以下条目的配置。它是固定的。

/ app | / translations | / node_modules | / built_assets / | / bundles | / es_admin | / plugins | / api | / ui | / elasticsearch | / spaces / enter

关于amazon-web-services - Kibana没有正确加载。使用Nginx反向代理设置后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46473494/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com