要求: 访问 domain.com/kibana
反向代理到内网 http://192.168.9.106
用了几种方式都不行, url会跳回domain.com/xxx.js下边
配置如下,实现不了
location /kibana {
auth_basic "Password please";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
proxy_pass http://127.0.0.1:5601/$request_uri;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
kibana需要同时修改basepath,参考: https://discuss.elastic.co/t/...