{"id":1415,"date":"2015-01-27T09:32:58","date_gmt":"2015-01-27T01:32:58","guid":{"rendered":"https:\/\/cowmanchiang.me\/wp\/?p=1415"},"modified":"2023-10-31T15:43:51","modified_gmt":"2023-10-31T07:43:51","slug":"apache-proxypass","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=1415","title":{"rendered":"[Apache] Proxypass"},"content":{"rendered":"<p>Because the default web port of Elasticsearch is 9200.<br \/>\nAnd I want to change it with 80.<br \/>\nMaybe I could use the proxypass function.<\/p>\n<ol>\n<li>enable the proxy, and restart apache<\/li>\n<\/ol>\n<pre lang=\"bash\">\na2enmod proxy\na2enmod proxy_http\nservice apache2 restart\n<\/pre>\n<ol>\n<li>add following into the \/etc\/apache2\/sites-enabled\/000-default.conf<\/li>\n<\/ol>\n<pre lang=\"bash\">\n<VirtualHost *:80>\n       ProxyPreserveHost On\n       ProxyVia full\n\n       <proxy>\n         Order deny,allow\n         Allow from all\n       <\/proxy>\n\n       ProxyPass        \/kibana9200  http:\/\/localhost:9200\n<\/VirtualHost>\n<\/pre>\n<ol>\n<li>edit the kibana config (vim \/var\/www\/kibana\/config.js)<\/li>\n<\/ol>\n<p>&lt;<\/p>\n<p>pre lang=&#8221;bash&#8221;><br \/>\n    elasticsearch: &#8220;http:\/\/&#8221;+window.location.hostname+&#8221;\/kibana9200&#8221;,<br \/>\n<\/bash><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/cowmanchiang.me\/wp\/?p=1415\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,40,57],"tags":[],"class_list":["post-1415","post","type-post","status-publish","format-standard","hentry","category-apache","category-elasticsearch","category-kibana"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1415"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1415\/revisions"}],"predecessor-version":[{"id":1939,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1415\/revisions\/1939"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}