[Apache] Proxypass

Because the default web port of Elasticsearch is 9200.
And I want to change it with 80.
Maybe I could use the proxypass function.

  1. enable the proxy, and restart apache
a2enmod proxy
a2enmod proxy_http
service apache2 restart
  1. 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

  1. edit the kibana config (vim /var/www/kibana/config.js)

<

pre lang=”bash”>
elasticsearch: “http://”+window.location.hostname+”/kibana9200”,

This entry was posted in Apache, Elasticsearch, Kibana. Bookmark the permalink.