Because the default web port of Elasticsearch is 9200.
And I want to change it with 80.
Maybe I could use the proxypass function.
- enable the proxy, and restart apache
a2enmod proxy
a2enmod proxy_http
service apache2 restart
- add following into the /etc/apache2/sites-enabled/000-default.conf
ProxyPreserveHost On
ProxyVia full
Order deny,allow
Allow from all
ProxyPass /kibana9200 http://localhost:9200
- edit the kibana config (vim /var/www/kibana/config.js)
<
pre lang=”bash”>
elasticsearch: “http://”+window.location.hostname+”/kibana9200”,