[英]Kibana behind Nginx reverse proxy - URL resource appending
I have a trouble with accessing Kibana over the reverse proxy on Nginx. 我在Nginx上通过反向代理访问Kibana时遇到麻烦。
Nginx configuration: Nginx配置:
location /development/kibana {
proxy_pass https://kibana.server.com/;
}
So when I am accessing the reverse proxy by http://my.proxy.com/development/kibana 因此,当我通过http://my.proxy.com/development/kibana访问反向代理时
My URL is rewrited to http://my.proxy.com/app/kibana 我的网址已重写为http://my.proxy.com/app/kibana
Which occurrs in 404 error, as there is nothing like '/app/kibana' on the reverse proxy. 哪个错误发生在404错误,因为反向代理上没有类似“ / app / kibana”的内容。
What is the best way to fix that rewriting URL? 修复该重写URL的最佳方法是什么?
已修复,方法是通过删除代理pass指令末尾的斜杠:
proxy_pass https://kibana.server.com;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.