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
1 2 3 |
a2enmod proxy a2enmod proxy_http service apache2 restart |
- add following into the /etc/apache2/sites-enabled/000-default.conf
1 2 3 4 5 6 7 8 9 10 11 |
<VirtualHost *:80> ProxyPreserveHost On ProxyVia full <proxy> Order deny,allow Allow from all </proxy> ProxyPass /kibana9200 http://localhost:9200 </VirtualHost> |
- edit the kibana config (vim /var/www/kibana/config.js)
<
pre lang=”bash”>
elasticsearch: “http://”+window.location.hostname+”/kibana9200”,