From 590b2135725d03e2bd60188bcab1424a3c9e3ab2 Mon Sep 17 00:00:00 2001 From: Aengus Walton Date: Tue, 15 Oct 2013 16:46:31 +0200 Subject: [PATCH 1/2] Add /_nodes route to example reverse proxy config --- sample/apache_ldap.conf | 2 +- sample/nginx.conf | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sample/apache_ldap.conf b/sample/apache_ldap.conf index e290d5697f3..50ee7f96233 100755 --- a/sample/apache_ldap.conf +++ b/sample/apache_ldap.conf @@ -31,7 +31,7 @@ # Proxy for _aliases and .*/_search - + ProxyPassMatch http://127.0.0.1:9200 ProxyPassReverse http://127.0.0.1:9200 diff --git a/sample/nginx.conf b/sample/nginx.conf index 6015897cf7b..b1e2f362e60 100755 --- a/sample/nginx.conf +++ b/sample/nginx.conf @@ -25,6 +25,10 @@ server { proxy_pass http://127.0.0.1:9200; proxy_read_timeout 90; } + location ~ ^/_nodes$ { + proxy_pass http://127.0.0.1:9200; + proxy_read_timeout 90; + } location ~ ^/.*/_search$ { proxy_pass http://127.0.0.1:9200; proxy_read_timeout 90; @@ -53,4 +57,4 @@ server { auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd; } } -} \ No newline at end of file +} From d3993875fa07cab5dfde437b9042070dc045fa5b Mon Sep 17 00:00:00 2001 From: Aengus Walton Date: Wed, 16 Oct 2013 14:06:57 +0200 Subject: [PATCH 2/2] Match and apply LocationMatch rules --- sample/apache_ldap.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sample/apache_ldap.conf b/sample/apache_ldap.conf index 50ee7f96233..f7df159e335 100755 --- a/sample/apache_ldap.conf +++ b/sample/apache_ldap.conf @@ -31,15 +31,15 @@ # Proxy for _aliases and .*/_search - - ProxyPassMatch http://127.0.0.1:9200 - ProxyPassReverse http://127.0.0.1:9200 + + ProxyPassMatch http://127.0.0.1:9200/$1 + ProxyPassReverse http://127.0.0.1:9200/$1 - + # Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected) - - ProxyPassMatch http://127.0.0.1:9200 - ProxyPassReverse http://127.0.0.1:9200 + + ProxyPassMatch http://127.0.0.1:9200/$1$2 + ProxyPassReverse http://127.0.0.1:9200/$1$2 # Optional disable auth for a src IP (eg: your monitoring host or subnet)