.htaccess - Apache reverse proxy for Kibana -
i'm trying set apache server redirect e.g localhost/kibana kibana @ localhost:5601.
i've tried adding apache2.conf:
proxypass /kibana http://localhost:5601 proxypassreverse /kibana http://localhost:5601
however gets stuck on kibana "loading components" page , never loads fully. works when changed this:
proxypass /kibana/ http://localhost:5601/ proxypassreverse /kibana/ http://localhost:5601/
obviously it's not ideal force user enter / @ end though, i've tried rewriting url in .htaccess:
rewriteengine on rewriterule http://localhost/kibana$ http://localhost/kibana/
but rewrite doesn't seem work. i've set allowoverride , enabled rewrite module, played around various different rewrite/proxy rules haven't had luck far.
i have finished apache configuration file kibana elasticsearch. may useful you:
/etc/httpd/conf.d/kibana.conf:
proxyrequests on proxypass /app/kibana http://127.0.0.1:5601/app/kibana proxypassreverse /app/kibana http://127.0.0.1:5601/app/kibana proxypass /elasticsearch http://127.0.0.1:9200/ proxypassreverse /elasticsearch http://127.0.0.1:9200/ alias /bundles/ /opt/kibana/optimize/bundles/ <directory /opt/kibana> require granted </directory>
this way not require additional "/" , works default kibana configuration file.
Comments
Post a Comment